pub struct ActionAvailability {
pub enabled: bool,
pub disabled_reason: Option<String>,
}Expand description
Applicability and disabled-state metadata for actions.
Fields§
§enabled: bool§disabled_reason: Option<String>Implementations§
Trait Implementations§
Source§impl Clone for ActionAvailability
impl Clone for ActionAvailability
Source§fn clone(&self) -> ActionAvailability
fn clone(&self) -> ActionAvailability
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 ActionAvailability
impl Debug for ActionAvailability
Source§impl Default for ActionAvailability
impl Default for ActionAvailability
Source§impl<'de> Deserialize<'de> for ActionAvailability
impl<'de> Deserialize<'de> for ActionAvailability
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 ActionAvailability
Source§impl PartialEq for ActionAvailability
impl PartialEq for ActionAvailability
Source§fn eq(&self, other: &ActionAvailability) -> bool
fn eq(&self, other: &ActionAvailability) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ActionAvailability
impl Serialize for ActionAvailability
impl StructuralPartialEq for ActionAvailability
Auto Trait Implementations§
impl Freeze for ActionAvailability
impl RefUnwindSafe for ActionAvailability
impl Send for ActionAvailability
impl Sync for ActionAvailability
impl Unpin for ActionAvailability
impl UnsafeUnpin for ActionAvailability
impl UnwindSafe for ActionAvailability
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
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§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.