pub enum DialogKey<Other = Identifier> {
CustomOptions,
QuickActions,
ServerLinks,
Other(Other),
}Variants§
Implementations§
Trait Implementations§
Source§impl DataRegistryKey for DialogKey
impl DataRegistryKey for DialogKey
type Borrow<'a> = DialogKey<&'a Identifier>
fn into_ident(self) -> Identifier
Source§impl<'a> DataRegistryKeyRef<'a> for DialogKey<&'a Identifier>
impl<'a> DataRegistryKeyRef<'a> for DialogKey<&'a Identifier>
type Owned = DialogKey
fn to_owned(self) -> Self::Owned
fn from_ident(ident: &'a Identifier) -> Self
fn into_ident(self) -> Identifier
Source§impl<'a> From<&'a Identifier> for DialogKey<&'a Identifier>
impl<'a> From<&'a Identifier> for DialogKey<&'a Identifier>
Source§fn from(ident: &'a Identifier) -> Self
fn from(ident: &'a Identifier) -> Self
Converts to this type from the input type.
Source§impl From<DialogKey<&Identifier>> for Identifier
impl From<DialogKey<&Identifier>> for Identifier
Source§fn from(registry: DialogKey<&Identifier>) -> Self
fn from(registry: DialogKey<&Identifier>) -> Self
Converts to this type from the input type.
Source§impl From<DialogKey> for Identifier
impl From<DialogKey> for Identifier
Source§impl From<Identifier> for DialogKey
impl From<Identifier> for DialogKey
Source§fn from(ident: Identifier) -> Self
fn from(ident: Identifier) -> Self
Converts to this type from the input type.
Source§impl FromNbtTag for DialogKey
impl FromNbtTag for DialogKey
fn from_nbt_tag(tag: NbtTag<'_, '_>) -> Option<Self>
fn from_optional_nbt_tag( tag: Option<NbtTag<'_, '_>>, ) -> Result<Option<Self>, DeserializeError>
impl<Other: Eq> Eq for DialogKey<Other>
impl<Other> StructuralPartialEq for DialogKey<Other>
Auto Trait Implementations§
impl<Other> Freeze for DialogKey<Other>where
Other: Freeze,
impl<Other> RefUnwindSafe for DialogKey<Other>where
Other: RefUnwindSafe,
impl<Other> Send for DialogKey<Other>where
Other: Send,
impl<Other> Sync for DialogKey<Other>where
Other: Sync,
impl<Other> Unpin for DialogKey<Other>where
Other: Unpin,
impl<Other> UnwindSafe for DialogKey<Other>where
Other: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.