Struct bird_chat::component::TranslationComponent
source · [−]pub struct TranslationComponent {
pub translate: String,
pub with: Vec<ComponentType>,
pub base: BaseComponent,
}Fields
translate: Stringwith: Vec<ComponentType>base: BaseComponentImplementations
Trait Implementations
sourceimpl Clone for TranslationComponent
impl Clone for TranslationComponent
sourcefn clone(&self) -> TranslationComponent
fn clone(&self) -> TranslationComponent
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 Component for TranslationComponent
impl Component for TranslationComponent
fn get_base(&self) -> &BaseComponent
sourceimpl Debug for TranslationComponent
impl Debug for TranslationComponent
sourceimpl<'de> Deserialize<'de> for TranslationComponent
impl<'de> Deserialize<'de> for TranslationComponent
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<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<TranslationComponent> for TranslationComponent
impl PartialEq<TranslationComponent> for TranslationComponent
sourcefn eq(&self, other: &TranslationComponent) -> bool
fn eq(&self, other: &TranslationComponent) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &TranslationComponent) -> bool
fn ne(&self, other: &TranslationComponent) -> bool
This method tests for !=.
sourceimpl Serialize for TranslationComponent
impl Serialize for TranslationComponent
impl StructuralPartialEq for TranslationComponent
Auto Trait Implementations
impl RefUnwindSafe for TranslationComponent
impl Send for TranslationComponent
impl Sync for TranslationComponent
impl Unpin for TranslationComponent
impl UnwindSafe for TranslationComponent
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