pub enum ActAvailability {
Proposable,
CardOnly,
}Expand description
Who may ask for an operation.
A card’s option may run an operation a model must never propose: the confirm button
of a recap. CardOnly keeps it off every task’s closed set and admits it only from
the card that carries it.
Variants§
Proposable
Understanding may route to it, and a card may carry it. The default.
CardOnly
Only an action a card carries may run it.
Implementations§
Source§impl ActAvailability
impl ActAvailability
Sourcepub const fn is_proposable(self) -> bool
pub const fn is_proposable(self) -> bool
Whether understanding may route a request to it.
Trait Implementations§
Source§impl Clone for ActAvailability
impl Clone for ActAvailability
impl Copy for ActAvailability
Source§impl Debug for ActAvailability
impl Debug for ActAvailability
Source§impl Default for ActAvailability
impl Default for ActAvailability
Source§impl<'de> Deserialize<'de> for ActAvailability
impl<'de> Deserialize<'de> for ActAvailability
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 ActAvailability
Source§impl Hash for ActAvailability
impl Hash for ActAvailability
Source§impl JsonSchema for ActAvailability
impl JsonSchema for ActAvailability
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ActAvailability
impl PartialEq for ActAvailability
Source§impl Serialize for ActAvailability
impl Serialize for ActAvailability
impl StructuralPartialEq for ActAvailability
Auto Trait Implementations§
impl Freeze for ActAvailability
impl RefUnwindSafe for ActAvailability
impl Send for ActAvailability
impl Sync for ActAvailability
impl Unpin for ActAvailability
impl UnsafeUnpin for ActAvailability
impl UnwindSafe for ActAvailability
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.