pub struct ControlId(/* private fields */);Expand description
A stable, author-assigned name for one control — one FIELD of an interaction — inside a definition.
Deliberately not content-derived: a control id must survive being
written by a human in a +++ envelope, and the definition it lives in
commits to it, so the definition’s ContentId is what protects its
integrity.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ControlId
impl<'de> Deserialize<'de> for ControlId
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
impl Eq for ControlId
Source§impl Ord for ControlId
impl Ord for ControlId
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 ControlId
impl PartialOrd for ControlId
impl StructuralPartialEq for ControlId
Auto Trait Implementations§
impl Freeze for ControlId
impl RefUnwindSafe for ControlId
impl Send for ControlId
impl Sync for ControlId
impl Unpin for ControlId
impl UnsafeUnpin for ControlId
impl UnwindSafe for ControlId
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