pub struct PetResortPortfolioRecord {
pub operator: OperatorCode,
pub resort_count: StoredResortCount,
pub structure: PortfolioStructureCode,
pub business_lines: Vec<BusinessLineCode>,
pub brands: Vec<PetResortBrandRecord>,
}Expand description
Storage shape for the pet-resort portfolio facts used to seed operating assumptions.
Fields§
§operator: OperatorCodePortfolio operator represented by the seed record.
resort_count: StoredResortCountNumber of resorts represented by the portfolio fact.
structure: PortfolioStructureCodePortfolio organization model used in operating assumptions.
business_lines: Vec<BusinessLineCode>Business lines included in the portfolio fact.
brands: Vec<PetResortBrandRecord>Pet-resort brands included in the portfolio fact.
Implementations§
Source§impl PetResortPortfolioRecord
impl PetResortPortfolioRecord
Sourcepub fn builder() -> PetResortPortfolioRecordBuilder
pub fn builder() -> PetResortPortfolioRecordBuilder
Create an instance of PetResortPortfolioRecord using the builder syntax
Source§impl PetResortPortfolioRecord
impl PetResortPortfolioRecord
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 PetResortPortfolioRecord
impl Clone for PetResortPortfolioRecord
Source§fn clone(&self) -> PetResortPortfolioRecord
fn clone(&self) -> PetResortPortfolioRecord
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PetResortPortfolioRecord
impl Debug for PetResortPortfolioRecord
Source§impl<'de> Deserialize<'de> for PetResortPortfolioRecord
impl<'de> Deserialize<'de> for PetResortPortfolioRecord
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PetResortPortfolioRecord
impl PartialEq for PetResortPortfolioRecord
Source§impl Serialize for PetResortPortfolioRecord
impl Serialize for PetResortPortfolioRecord
Source§impl TryFrom<PetResortPortfolioRecord> for Portfolio
impl TryFrom<PetResortPortfolioRecord> for Portfolio
Source§impl TryFrom<Portfolio> for PetResortPortfolioRecord
impl TryFrom<Portfolio> for PetResortPortfolioRecord
impl Eq for PetResortPortfolioRecord
impl StructuralPartialEq for PetResortPortfolioRecord
Auto Trait Implementations§
impl Freeze for PetResortPortfolioRecord
impl RefUnwindSafe for PetResortPortfolioRecord
impl Send for PetResortPortfolioRecord
impl Sync for PetResortPortfolioRecord
impl Unpin for PetResortPortfolioRecord
impl UnsafeUnpin for PetResortPortfolioRecord
impl UnwindSafe for PetResortPortfolioRecord
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more