pub struct CapabilityNote {
pub id: String,
pub status: String,
pub reason: Option<String>,
pub action: Option<String>,
pub destinations: Vec<String>,
}Expand description
One capability’s answer, as the receipt carries it.
Fields§
§id: StringThe capability id.
status: StringIts status: selected, not-requested, not-applicable, unavailable, unknown, or withheld.
reason: Option<String>Why, for every status but selected.
action: Option<String>The operator’s one edit, for a withheld capability.
destinations: Vec<String>The destinations it lands, sorted.
Implementations§
Source§impl CapabilityNote
impl CapabilityNote
Sourcepub fn of(selection: &Selection, projection: &Projection) -> Self
pub fn of(selection: &Selection, projection: &Projection) -> Self
The note for one selection, with the destinations the projection landed under it.
Trait Implementations§
Source§impl Clone for CapabilityNote
impl Clone for CapabilityNote
Source§fn clone(&self) -> CapabilityNote
fn clone(&self) -> CapabilityNote
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CapabilityNote
impl Debug for CapabilityNote
Source§impl<'de> Deserialize<'de> for CapabilityNote
impl<'de> Deserialize<'de> for CapabilityNote
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
Auto Trait Implementations§
impl Freeze for CapabilityNote
impl RefUnwindSafe for CapabilityNote
impl Send for CapabilityNote
impl Sync for CapabilityNote
impl Unpin for CapabilityNote
impl UnsafeUnpin for CapabilityNote
impl UnwindSafe for CapabilityNote
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