pub struct Control {
pub id: ControlId,
pub kind: ControlKind,
pub label: String,
pub requirement: Requirement,
}Expand description
One control: a stable id, what it means, and how it takes input.
Fields§
§id: ControlIdStable within the definition; the definition commits to it.
kind: ControlKindHow it accepts input, and — for a choice — what it offers.
label: StringHuman-readable label. Labels never confer authority (ADR law 2).
requirement: RequirementWhether a response must include this control.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Control
impl<'de> Deserialize<'de> for Control
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 Control
impl StructuralPartialEq for Control
Auto Trait Implementations§
impl Freeze for Control
impl RefUnwindSafe for Control
impl Send for Control
impl Sync for Control
impl Unpin for Control
impl UnsafeUnpin for Control
impl UnwindSafe for Control
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