Enum bird_chat::component::ComponentType
source · [−]pub enum ComponentType {
Text(TextComponent),
Translation(TranslationComponent),
KeyBind(KeyBindComponent),
Score(ScoreComponent),
Selector(SelectorComponent),
Base(BaseComponent),
}Variants
Text(TextComponent)
Translation(TranslationComponent)
KeyBind(KeyBindComponent)
Score(ScoreComponent)
Selector(SelectorComponent)
Base(BaseComponent)
Trait Implementations
sourceimpl Clone for ComponentType
impl Clone for ComponentType
sourcefn clone(&self) -> ComponentType
fn clone(&self) -> ComponentType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for ComponentType
impl Debug for ComponentType
sourceimpl<'de> Deserialize<'de> for ComponentType
impl<'de> Deserialize<'de> for ComponentType
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl From<KeyBindComponent> for ComponentType
impl From<KeyBindComponent> for ComponentType
sourcefn from(component: KeyBindComponent) -> Self
fn from(component: KeyBindComponent) -> Self
Converts to this type from the input type.
sourceimpl From<ScoreComponent> for ComponentType
impl From<ScoreComponent> for ComponentType
sourcefn from(component: ScoreComponent) -> Self
fn from(component: ScoreComponent) -> Self
Converts to this type from the input type.
sourceimpl From<SelectorComponent> for ComponentType
impl From<SelectorComponent> for ComponentType
sourcefn from(component: SelectorComponent) -> Self
fn from(component: SelectorComponent) -> Self
Converts to this type from the input type.
sourceimpl From<TextComponent> for ComponentType
impl From<TextComponent> for ComponentType
sourcefn from(component: TextComponent) -> Self
fn from(component: TextComponent) -> Self
Converts to this type from the input type.
sourceimpl From<TranslationComponent> for ComponentType
impl From<TranslationComponent> for ComponentType
sourcefn from(component: TranslationComponent) -> Self
fn from(component: TranslationComponent) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<ComponentType> for ComponentType
impl PartialEq<ComponentType> for ComponentType
sourcefn eq(&self, other: &ComponentType) -> bool
fn eq(&self, other: &ComponentType) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &ComponentType) -> bool
fn ne(&self, other: &ComponentType) -> bool
This method tests for !=.
sourceimpl Serialize for ComponentType
impl Serialize for ComponentType
impl StructuralPartialEq for ComponentType
Auto Trait Implementations
impl RefUnwindSafe for ComponentType
impl Send for ComponentType
impl Sync for ComponentType
impl Unpin for ComponentType
impl UnwindSafe for ComponentType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more