pub struct CoreServiceContractsRecord {
pub location_id: LocationId,
pub boarding: ContractRecord,
pub daycare: ContractRecord,
pub grooming: ContractRecord,
pub training: ContractRecord,
pub retail: ContractRecord,
}Expand description
Storage snapshot of the service-line rules enabled for a location.
Fields§
§location_id: LocationIdLocation whose operating day or service rules is described.
boarding: ContractRecordBoarding rules capabilities for the location.
daycare: ContractRecordDaycare rules capabilities for the location.
grooming: ContractRecordGrooming rules capabilities for the location.
training: ContractRecordTraining rules capabilities for the location.
retail: ContractRecordRetail rules capabilities for the location.
Implementations§
Source§impl CoreServiceContractsRecord
impl CoreServiceContractsRecord
Sourcepub const fn record_kind(&self) -> RecordKind
pub const fn record_kind(&self) -> RecordKind
Returns the stable record family represented by this storage snapshot.
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.
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.
Trait Implementations§
Source§impl Clone for CoreServiceContractsRecord
impl Clone for CoreServiceContractsRecord
Source§fn clone(&self) -> CoreServiceContractsRecord
fn clone(&self) -> CoreServiceContractsRecord
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 CoreServiceContractsRecord
impl Debug for CoreServiceContractsRecord
Source§impl<'de> Deserialize<'de> for CoreServiceContractsRecord
impl<'de> Deserialize<'de> for CoreServiceContractsRecord
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 From<CoreServiceContractsRecord> for ServiceContracts
impl From<CoreServiceContractsRecord> for ServiceContracts
Source§fn from(record: CoreServiceContractsRecord) -> Self
fn from(record: CoreServiceContractsRecord) -> Self
Converts to this type from the input type.
Source§impl From<ServiceContracts> for CoreServiceContractsRecord
impl From<ServiceContracts> for CoreServiceContractsRecord
Source§fn from(contracts: ServiceContracts) -> Self
fn from(contracts: ServiceContracts) -> Self
Converts to this type from the input type.
impl Eq for CoreServiceContractsRecord
impl StructuralPartialEq for CoreServiceContractsRecord
Auto Trait Implementations§
impl Freeze for CoreServiceContractsRecord
impl RefUnwindSafe for CoreServiceContractsRecord
impl Send for CoreServiceContractsRecord
impl Sync for CoreServiceContractsRecord
impl Unpin for CoreServiceContractsRecord
impl UnsafeUnpin for CoreServiceContractsRecord
impl UnwindSafe for CoreServiceContractsRecord
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