pub enum RecipeBookStatus {
Displayed(String),
States(RecipeBookStates),
}
Variants§
Displayed(String)
States(RecipeBookStates)
Implementations§
Source§impl RecipeBookStatus
impl RecipeBookStatus
pub const fn variant_count() -> usize
pub fn deserialize_with_id<'a>( id: VarInt, data: &'a [u8], ) -> DeserializeResult<'a, Self>
pub fn name(&self) -> &str
pub fn id(&self) -> VarInt
pub fn serialize_body<S: Serializer>(&self, to: &mut S) -> SerializeResult
Trait Implementations§
Source§impl Clone for RecipeBookStatus
impl Clone for RecipeBookStatus
Source§fn clone(&self) -> RecipeBookStatus
fn clone(&self) -> RecipeBookStatus
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 RecipeBookStatus
impl Debug for RecipeBookStatus
Source§impl Deserialize for RecipeBookStatus
impl Deserialize for RecipeBookStatus
fn mc_deserialize(data: &[u8]) -> DeserializeResult<'_, Self>
Source§impl From<PlayRecipeBookDataSpec> for RecipeBookStatus
impl From<PlayRecipeBookDataSpec> for RecipeBookStatus
Source§fn from(other: PlayRecipeBookDataSpec) -> Self
fn from(other: PlayRecipeBookDataSpec) -> Self
Converts to this type from the input type.
Source§impl From<RecipeBookStatus> for PlayRecipeBookDataSpec
impl From<RecipeBookStatus> for PlayRecipeBookDataSpec
Source§fn from(other: RecipeBookStatus) -> Self
fn from(other: RecipeBookStatus) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RecipeBookStatus
impl PartialEq for RecipeBookStatus
Source§impl Serialize for RecipeBookStatus
impl Serialize for RecipeBookStatus
fn mc_serialize<S: Serializer>(&self, to: &mut S) -> SerializeResult
impl StructuralPartialEq for RecipeBookStatus
Auto Trait Implementations§
impl Freeze for RecipeBookStatus
impl RefUnwindSafe for RecipeBookStatus
impl Send for RecipeBookStatus
impl Sync for RecipeBookStatus
impl Unpin for RecipeBookStatus
impl UnwindSafe for RecipeBookStatus
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