pub struct LocalizedText {
pub zh: &'static str,
pub en: &'static str,
}Expand description
Bilingual text kept on the registration face. 注册面上的双语文本。
Fields§
§zh: &'static strChinese text shown by authoring and diagnostic surfaces. 创作与诊断界面显示的中文文本。
en: &'static strEnglish text shown by authoring and diagnostic surfaces. 创作与诊断界面显示的英文文本。
Trait Implementations§
Source§impl Clone for LocalizedText
impl Clone for LocalizedText
Source§fn clone(&self) -> LocalizedText
fn clone(&self) -> LocalizedText
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LocalizedText
Source§impl Debug for LocalizedText
impl Debug for LocalizedText
impl Eq for LocalizedText
Source§impl PartialEq for LocalizedText
impl PartialEq for LocalizedText
impl StructuralPartialEq for LocalizedText
Auto Trait Implementations§
impl Freeze for LocalizedText
impl RefUnwindSafe for LocalizedText
impl Send for LocalizedText
impl Sync for LocalizedText
impl Unpin for LocalizedText
impl UnsafeUnpin for LocalizedText
impl UnwindSafe for LocalizedText
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