pub enum TitleActionSpec {
SetTitle(Chat),
SetSubtitle(Chat),
SetActionBar(Chat),
SetTimesAndDisplay(TitleTimesSpec),
Hide,
Reset,
}
Variants§
Implementations§
Source§impl TitleActionSpec
impl TitleActionSpec
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 TitleActionSpec
impl Clone for TitleActionSpec
Source§fn clone(&self) -> TitleActionSpec
fn clone(&self) -> TitleActionSpec
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 TitleActionSpec
impl Debug for TitleActionSpec
Source§impl Deserialize for TitleActionSpec
impl Deserialize for TitleActionSpec
fn mc_deserialize(data: &[u8]) -> DeserializeResult<'_, Self>
Source§impl From<PlayTitleSpec> for TitleActionSpec
impl From<PlayTitleSpec> for TitleActionSpec
Source§fn from(other: PlayTitleSpec) -> Self
fn from(other: PlayTitleSpec) -> Self
Converts to this type from the input type.
Source§impl From<TitleActionSpec> for PlayTitleSpec
impl From<TitleActionSpec> for PlayTitleSpec
Source§fn from(other: TitleActionSpec) -> Self
fn from(other: TitleActionSpec) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TitleActionSpec
impl PartialEq for TitleActionSpec
Source§impl Serialize for TitleActionSpec
impl Serialize for TitleActionSpec
fn mc_serialize<S: Serializer>(&self, to: &mut S) -> SerializeResult
impl StructuralPartialEq for TitleActionSpec
Auto Trait Implementations§
impl Freeze for TitleActionSpec
impl RefUnwindSafe for TitleActionSpec
impl Send for TitleActionSpec
impl Sync for TitleActionSpec
impl Unpin for TitleActionSpec
impl UnwindSafe for TitleActionSpec
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