pub struct ExtractedSingularMessage {
pub msgid: String,
pub msgctxt: Option<String>,
pub comments: Vec<String>,
pub origin: Vec<CatalogOrigin>,
pub placeholders: BTreeMap<String, Vec<String>>,
}Expand description
Structured singular message input used by catalog update operations.
Fields§
§msgid: StringSource message identifier.
msgctxt: Option<String>Optional gettext message context.
comments: Vec<String>Extracted comments that should become translator-facing guidance.
origin: Vec<CatalogOrigin>Source locations collected by the extractor.
placeholders: BTreeMap<String, Vec<String>>Placeholder hints keyed by placeholder name.
Trait Implementations§
Source§impl Clone for ExtractedSingularMessage
impl Clone for ExtractedSingularMessage
Source§fn clone(&self) -> ExtractedSingularMessage
fn clone(&self) -> ExtractedSingularMessage
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 ExtractedSingularMessage
impl Debug for ExtractedSingularMessage
Source§impl Default for ExtractedSingularMessage
impl Default for ExtractedSingularMessage
Source§fn default() -> ExtractedSingularMessage
fn default() -> ExtractedSingularMessage
Returns the “default value” for a type. Read more
Source§impl PartialEq for ExtractedSingularMessage
impl PartialEq for ExtractedSingularMessage
impl Eq for ExtractedSingularMessage
impl StructuralPartialEq for ExtractedSingularMessage
Auto Trait Implementations§
impl Freeze for ExtractedSingularMessage
impl RefUnwindSafe for ExtractedSingularMessage
impl Send for ExtractedSingularMessage
impl Sync for ExtractedSingularMessage
impl Unpin for ExtractedSingularMessage
impl UnsafeUnpin for ExtractedSingularMessage
impl UnwindSafe for ExtractedSingularMessage
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