pub struct MultiLanguageTSVRecord {
pub key: String,
pub translations: HashMap<String, String>,
}Expand description
Represents a multi-language TSV record where the first column is the key and subsequent columns are translations for different languages.
Fields§
§key: String§translations: HashMap<String, String>Implementations§
Source§impl MultiLanguageTSVRecord
impl MultiLanguageTSVRecord
Sourcepub fn add_translation(&mut self, language: String, value: String)
pub fn add_translation(&mut self, language: String, value: String)
Adds a translation for a specific language.
Sourcepub fn get_translation(&self, language: &str) -> Option<&String>
pub fn get_translation(&self, language: &str) -> Option<&String>
Gets a translation for a specific language.
Trait Implementations§
Source§impl Clone for MultiLanguageTSVRecord
impl Clone for MultiLanguageTSVRecord
Source§fn clone(&self) -> MultiLanguageTSVRecord
fn clone(&self) -> MultiLanguageTSVRecord
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 MultiLanguageTSVRecord
impl Debug for MultiLanguageTSVRecord
Source§impl PartialEq for MultiLanguageTSVRecord
impl PartialEq for MultiLanguageTSVRecord
impl Eq for MultiLanguageTSVRecord
impl StructuralPartialEq for MultiLanguageTSVRecord
Auto Trait Implementations§
impl Freeze for MultiLanguageTSVRecord
impl RefUnwindSafe for MultiLanguageTSVRecord
impl Send for MultiLanguageTSVRecord
impl Sync for MultiLanguageTSVRecord
impl Unpin for MultiLanguageTSVRecord
impl UnwindSafe for MultiLanguageTSVRecord
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