pub struct ModelName(/* private fields */);Expand description
The model a design asks for, never the one that ran.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ModelName
Decoding goes through the constructor.
impl<'de> Deserialize<'de> for ModelName
Decoding goes through the constructor.
A derived implementation would accept a stored or transmitted value this type refuses to be built from, and the invariant would hold everywhere except where the document came from outside — which is the only place it was ever at risk.
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ModelName
Source§impl Ord for ModelName
impl Ord for ModelName
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for ModelName
impl PartialOrd for ModelName
impl StructuralPartialEq for ModelName
Auto Trait Implementations§
impl Freeze for ModelName
impl RefUnwindSafe for ModelName
impl Send for ModelName
impl Sync for ModelName
impl Unpin for ModelName
impl UnsafeUnpin for ModelName
impl UnwindSafe for ModelName
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