pub enum Accepts {
View,
Component(String),
OneOf(Vec<String>),
}Expand description
What a part accepts.
Variants§
View
Component(String)
Only the component of this name, whose props the part’s owner reads.
OneOf(Vec<String>)
Any of the components of these names, in any order (a menu’s commands, separators and emoji bar), whose props the part’s owner reads.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Accepts
impl<'de> Deserialize<'de> for Accepts
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 Accepts
impl StructuralPartialEq for Accepts
Auto Trait Implementations§
impl Forget for Accepts
impl Freeze for Accepts
impl Move for Accepts
impl RefUnwindSafe for Accepts
impl Send for Acceptswhere
RawVecInner: Send,
impl Sync for Acceptswhere
RawVecInner: Sync,
impl Unpin for Accepts
impl UnsafeUnpin for Acceptswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for Acceptswhere
RawVecInner: UnwindSafe,
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