pub struct MergeExtractedMessage<'a> {
pub msgctxt: Option<Cow<'a, str>>,
pub msgid: Cow<'a, str>,
pub msgid_plural: Option<Cow<'a, str>>,
pub references: Vec<Cow<'a, str>>,
pub extracted_comments: Vec<Cow<'a, str>>,
pub flags: Vec<Cow<'a, str>>,
}Expand description
Borrowed extracted message input for the lightweight merge helper.
Fields§
§msgctxt: Option<Cow<'a, str>>Optional gettext message context.
msgid: Cow<'a, str>Source message identifier.
msgid_plural: Option<Cow<'a, str>>Optional plural source identifier.
references: Vec<Cow<'a, str>>Source references such as src/app.rs:10.
extracted_comments: Vec<Cow<'a, str>>Extracted translator guidance comments.
flags: Vec<Cow<'a, str>>Flags such as fuzzy.
Trait Implementations§
Source§impl<'a> Clone for ExtractedMessage<'a>
impl<'a> Clone for ExtractedMessage<'a>
Source§fn clone(&self) -> ExtractedMessage<'a>
fn clone(&self) -> ExtractedMessage<'a>
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<'a> Debug for ExtractedMessage<'a>
impl<'a> Debug for ExtractedMessage<'a>
Source§impl<'a> Default for ExtractedMessage<'a>
impl<'a> Default for ExtractedMessage<'a>
Source§fn default() -> ExtractedMessage<'a>
fn default() -> ExtractedMessage<'a>
Returns the “default value” for a type. Read more
Source§impl<'a> PartialEq for ExtractedMessage<'a>
impl<'a> PartialEq for ExtractedMessage<'a>
impl<'a> Eq for ExtractedMessage<'a>
impl<'a> StructuralPartialEq for ExtractedMessage<'a>
Auto Trait Implementations§
impl<'a> Freeze for ExtractedMessage<'a>
impl<'a> RefUnwindSafe for ExtractedMessage<'a>
impl<'a> Send for ExtractedMessage<'a>
impl<'a> Sync for ExtractedMessage<'a>
impl<'a> Unpin for ExtractedMessage<'a>
impl<'a> UnsafeUnpin for ExtractedMessage<'a>
impl<'a> UnwindSafe for ExtractedMessage<'a>
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