pub struct PoItem {
pub msgid: String,
pub msgctxt: Option<String>,
pub references: Vec<String>,
pub msgid_plural: Option<String>,
pub msgstr: MsgStr,
pub comments: Vec<String>,
pub extracted_comments: Vec<String>,
pub flags: Vec<String>,
pub metadata: Vec<(String, String)>,
pub obsolete: bool,
pub nplurals: usize,
}Expand description
A single gettext message entry.
Fields§
§msgid: StringSource message identifier.
msgctxt: Option<String>Optional gettext message context.
references: Vec<String>Source references such as src/app.rs:10.
msgid_plural: Option<String>Optional plural source identifier.
msgstr: MsgStrTranslation payload for the message.
comments: Vec<String>Translator comments attached to the item.
extracted_comments: Vec<String>Extracted comments attached to the item.
flags: Vec<String>Flags such as fuzzy.
metadata: Vec<(String, String)>Raw metadata lines that do not fit the dedicated fields.
obsolete: boolWhether the item is marked obsolete.
nplurals: usizeNumber of plural slots expected when the item is serialized.
Implementations§
Trait Implementations§
impl Eq for PoItem
impl StructuralPartialEq for PoItem
Auto Trait Implementations§
impl Freeze for PoItem
impl RefUnwindSafe for PoItem
impl Send for PoItem
impl Sync for PoItem
impl Unpin for PoItem
impl UnsafeUnpin for PoItem
impl UnwindSafe for PoItem
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