pub struct ServiceOfferingRecord {
pub service_kind: ServiceOfferingKindCode,
pub boarding_accommodation: Option<AccommodationCode>,
pub boarding_included_care: Vec<CareFeatureCode>,
pub boarding_add_ons: Vec<AddOnCode>,
pub daycare_format: Option<FormatCode>,
pub daycare_eligibility_rules: Vec<EligibilityRuleCode>,
pub grooming_service: Option<ServiceCode>,
pub grooming_cadence_weeks: Option<StoredCadenceWeeks>,
pub training_program: Option<ProgramRecord>,
pub retail_partner: Option<PartnerCode>,
pub retail_product_category: Option<ProductCategoryCode>,
}Expand description
Flattened storage shape for one service-line offering; only fields valid for its service_kind may be populated.
Fields§
§service_kind: ServiceOfferingKindCodeDiscriminator indicating which service-line fields are meaningful.
boarding_accommodation: Option<AccommodationCode>Boarding room or suite type for a boarding offering.
boarding_included_care: Vec<CareFeatureCode>Included care features bundled with a boarding offering.
boarding_add_ons: Vec<AddOnCode>Optional boarding add-ons available for the offering.
daycare_format: Option<FormatCode>Daycare play or day-boarding format represented by the offering.
daycare_eligibility_rules: Vec<EligibilityRuleCode>Eligibility requirements that must be satisfied before daycare use.
grooming_service: Option<ServiceCode>Grooming service represented by the offering.
grooming_cadence_weeks: Option<StoredCadenceWeeks>Recommended grooming repeat cadence in weeks.
training_program: Option<ProgramRecord>Training program represented by the offering.
retail_partner: Option<PartnerCode>Retail partner product represented by the offering.
retail_product_category: Option<ProductCategoryCode>Retail category used for merchandising and upsell logic.
Implementations§
Source§impl ServiceOfferingRecord
impl ServiceOfferingRecord
Sourcepub fn builder() -> ServiceOfferingRecordBuilder
pub fn builder() -> ServiceOfferingRecordBuilder
Create an instance of ServiceOfferingRecord using the builder syntax
Source§impl ServiceOfferingRecord
impl ServiceOfferingRecord
Sourcepub fn decode_json(raw: &str) -> Result<Self>
pub fn decode_json(raw: &str) -> Result<Self>
Decodes a JSON storage payload into its typed record shape.
Sourcepub fn encode_json(&self) -> Result<String>
pub fn encode_json(&self) -> Result<String>
Encodes the storage record as JSON for persistence or fixture comparison.
Trait Implementations§
Source§impl Clone for ServiceOfferingRecord
impl Clone for ServiceOfferingRecord
Source§fn clone(&self) -> ServiceOfferingRecord
fn clone(&self) -> ServiceOfferingRecord
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more