pub enum SuggestionsTypeSpec {
AskServer,
AllRecipes,
AvailableSounds,
SummonableEntities,
}
Variants§
Implementations§
Source§impl SuggestionsTypeSpec
impl SuggestionsTypeSpec
pub const fn variant_count() -> usize
pub fn name(&self) -> &str
pub fn id(&self) -> String
pub fn deserialize_with_id<'a>( name: &str, data: &'a [u8], ) -> DeserializeResult<'a, Self>
pub fn serialize_body<S: Serializer>(&self, to: &mut S) -> SerializeResult
Trait Implementations§
Source§impl Clone for SuggestionsTypeSpec
impl Clone for SuggestionsTypeSpec
Source§fn clone(&self) -> SuggestionsTypeSpec
fn clone(&self) -> SuggestionsTypeSpec
Returns a duplicate of the value. Read more
1.0.0 · 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 SuggestionsTypeSpec
impl Debug for SuggestionsTypeSpec
Source§impl Deserialize for SuggestionsTypeSpec
impl Deserialize for SuggestionsTypeSpec
fn mc_deserialize(data: &[u8]) -> DeserializeResult<'_, Self>
Source§impl From<&SuggestionsTypeSpec> for String
impl From<&SuggestionsTypeSpec> for String
Source§fn from(arg: &SuggestionsTypeSpec) -> Self
fn from(arg: &SuggestionsTypeSpec) -> Self
Converts to this type from the input type.
Source§impl From<SuggestionsTypeSpec> for String
impl From<SuggestionsTypeSpec> for String
Source§fn from(arg: SuggestionsTypeSpec) -> Self
fn from(arg: SuggestionsTypeSpec) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SuggestionsTypeSpec
impl PartialEq for SuggestionsTypeSpec
Source§impl Serialize for SuggestionsTypeSpec
impl Serialize for SuggestionsTypeSpec
fn mc_serialize<S: Serializer>(&self, to: &mut S) -> SerializeResult
impl StructuralPartialEq for SuggestionsTypeSpec
Auto Trait Implementations§
impl Freeze for SuggestionsTypeSpec
impl RefUnwindSafe for SuggestionsTypeSpec
impl Send for SuggestionsTypeSpec
impl Sync for SuggestionsTypeSpec
impl Unpin for SuggestionsTypeSpec
impl UnwindSafe for SuggestionsTypeSpec
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