pub struct TranslationEntry {
pub key: String,
pub value: String,
pub line: usize,
pub file: PathBuf,
}Expand description
Represents a single translation entry found in a file
Fields§
§key: StringThe full dot-notation key (e.g., “invoice.labels.add_new”)
value: StringThe translation value (e.g., “Add New”)
line: usizeThe line number where the key is defined (1-indexed)
file: PathBufThe file path where this entry was found
Trait Implementations§
Source§impl Clone for TranslationEntry
impl Clone for TranslationEntry
Source§fn clone(&self) -> TranslationEntry
fn clone(&self) -> TranslationEntry
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 TranslationEntry
impl Debug for TranslationEntry
Source§impl<'de> Deserialize<'de> for TranslationEntry
impl<'de> Deserialize<'de> for TranslationEntry
Source§fn 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
Source§impl PartialEq for TranslationEntry
impl PartialEq for TranslationEntry
Source§impl Serialize for TranslationEntry
impl Serialize for TranslationEntry
impl Eq for TranslationEntry
impl StructuralPartialEq for TranslationEntry
Auto Trait Implementations§
impl Freeze for TranslationEntry
impl RefUnwindSafe for TranslationEntry
impl Send for TranslationEntry
impl Sync for TranslationEntry
impl Unpin for TranslationEntry
impl UnwindSafe for TranslationEntry
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