pub enum TeamTagNameVisibility {
Always,
HideForOtherTeams,
HideForOwnTeam,
Never,
}
Variants§
Implementations§
Source§impl TeamTagNameVisibility
impl TeamTagNameVisibility
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 TeamTagNameVisibility
impl Clone for TeamTagNameVisibility
Source§fn clone(&self) -> TeamTagNameVisibility
fn clone(&self) -> TeamTagNameVisibility
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 TeamTagNameVisibility
impl Debug for TeamTagNameVisibility
Source§impl Deserialize for TeamTagNameVisibility
impl Deserialize for TeamTagNameVisibility
fn mc_deserialize(data: &[u8]) -> DeserializeResult<'_, Self>
Source§impl From<&TeamTagNameVisibility> for String
impl From<&TeamTagNameVisibility> for String
Source§fn from(arg: &TeamTagNameVisibility) -> Self
fn from(arg: &TeamTagNameVisibility) -> Self
Converts to this type from the input type.
Source§impl From<TeamTagNameVisibility> for String
impl From<TeamTagNameVisibility> for String
Source§fn from(arg: TeamTagNameVisibility) -> Self
fn from(arg: TeamTagNameVisibility) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TeamTagNameVisibility
impl PartialEq for TeamTagNameVisibility
Source§impl Serialize for TeamTagNameVisibility
impl Serialize for TeamTagNameVisibility
fn mc_serialize<S: Serializer>(&self, to: &mut S) -> SerializeResult
impl StructuralPartialEq for TeamTagNameVisibility
Auto Trait Implementations§
impl Freeze for TeamTagNameVisibility
impl RefUnwindSafe for TeamTagNameVisibility
impl Send for TeamTagNameVisibility
impl Sync for TeamTagNameVisibility
impl Unpin for TeamTagNameVisibility
impl UnwindSafe for TeamTagNameVisibility
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