pub struct Key { /* private fields */ }Expand description
Typed key domain value that keeps raw primitives out of operations workflows.
Implementations§
Source§impl Key
impl Key
Sourcepub const fn new(
location_id: LocationId,
service_line: ServiceLine,
date: Date,
) -> Self
pub const fn new( location_id: LocationId, service_line: ServiceLine, date: Date, ) -> Self
Assembles this operations value from already-validated domain parts.
Sourcepub const fn location_id(&self) -> LocationId
pub const fn location_id(&self) -> LocationId
Returns this operations value’s location id.
Sourcepub const fn service_line(&self) -> ServiceLine
pub const fn service_line(&self) -> ServiceLine
Returns this operations value’s service line.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Key
impl<'de> Deserialize<'de> for Key
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 Ord for Key
impl Ord for Key
Source§impl PartialOrd for Key
impl PartialOrd for Key
impl Eq for Key
impl StructuralPartialEq for Key
Auto Trait Implementations§
impl Freeze for Key
impl RefUnwindSafe for Key
impl Send for Key
impl Sync for Key
impl Unpin for Key
impl UnsafeUnpin for Key
impl UnwindSafe for Key
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