pub struct SystemPurpose(/* private fields */);Expand description
Why the system exists, in the words of whoever asked for it.
Bounded rather than free: a purpose nobody can read in one sitting is a purpose the design cannot be checked against.
Implementations§
Source§impl SystemPurpose
impl SystemPurpose
Trait Implementations§
Source§impl Clone for SystemPurpose
impl Clone for SystemPurpose
Source§impl Debug for SystemPurpose
impl Debug for SystemPurpose
Source§impl<'de> Deserialize<'de> for SystemPurpose
Decoding goes through the constructor.
impl<'de> Deserialize<'de> for SystemPurpose
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
Source§impl Display for SystemPurpose
impl Display for SystemPurpose
impl Eq for SystemPurpose
Source§impl Hash for SystemPurpose
impl Hash for SystemPurpose
Source§impl Ord for SystemPurpose
impl Ord for SystemPurpose
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 PartialEq for SystemPurpose
impl PartialEq for SystemPurpose
Source§impl PartialOrd for SystemPurpose
impl PartialOrd for SystemPurpose
Source§impl Serialize for SystemPurpose
impl Serialize for SystemPurpose
impl StructuralPartialEq for SystemPurpose
Source§impl TryFrom<&str> for SystemPurpose
impl TryFrom<&str> for SystemPurpose
Auto Trait Implementations§
impl Freeze for SystemPurpose
impl RefUnwindSafe for SystemPurpose
impl Send for SystemPurpose
impl Sync for SystemPurpose
impl Unpin for SystemPurpose
impl UnsafeUnpin for SystemPurpose
impl UnwindSafe for SystemPurpose
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