pub struct OwnedLocalizedText {
pub zh: String,
pub en: String,
}Expand description
Owned twin of LocalizedText for reloadable declarations.
LocalizedText 的 owned 孪生,供可热重载声明使用。
Fields§
§zh: StringLabel text shown to Chinese readers. 面向中文读者的标签文本。
en: StringLabel text shown to English readers. 面向英文读者的标签文本。
Trait Implementations§
Source§impl Clone for OwnedLocalizedText
impl Clone for OwnedLocalizedText
Source§fn clone(&self) -> OwnedLocalizedText
fn clone(&self) -> OwnedLocalizedText
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 moreSource§impl Debug for OwnedLocalizedText
impl Debug for OwnedLocalizedText
impl Eq for OwnedLocalizedText
Source§impl PartialEq for OwnedLocalizedText
impl PartialEq for OwnedLocalizedText
impl StructuralPartialEq for OwnedLocalizedText
Auto Trait Implementations§
impl Freeze for OwnedLocalizedText
impl RefUnwindSafe for OwnedLocalizedText
impl Send for OwnedLocalizedText
impl Sync for OwnedLocalizedText
impl Unpin for OwnedLocalizedText
impl UnsafeUnpin for OwnedLocalizedText
impl UnwindSafe for OwnedLocalizedText
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