pub struct MergeMessageInput<'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 message input for the lightweight PO 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 MergeMessageInput<'a>
impl<'a> Clone for MergeMessageInput<'a>
Source§fn clone(&self) -> MergeMessageInput<'a>
fn clone(&self) -> MergeMessageInput<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MergeMessageInput<'a>
impl<'a> Debug for MergeMessageInput<'a>
Source§impl<'a> Default for MergeMessageInput<'a>
impl<'a> Default for MergeMessageInput<'a>
Source§fn default() -> MergeMessageInput<'a>
fn default() -> MergeMessageInput<'a>
Returns the “default value” for a type. Read more
impl<'a> Eq for MergeMessageInput<'a>
Source§impl<'a> PartialEq for MergeMessageInput<'a>
impl<'a> PartialEq for MergeMessageInput<'a>
Source§fn eq(&self, other: &MergeMessageInput<'a>) -> bool
fn eq(&self, other: &MergeMessageInput<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> StructuralPartialEq for MergeMessageInput<'a>
Auto Trait Implementations§
impl<'a> Freeze for MergeMessageInput<'a>
impl<'a> RefUnwindSafe for MergeMessageInput<'a>
impl<'a> Send for MergeMessageInput<'a>
impl<'a> Sync for MergeMessageInput<'a>
impl<'a> Unpin for MergeMessageInput<'a>
impl<'a> UnsafeUnpin for MergeMessageInput<'a>
impl<'a> UnwindSafe for MergeMessageInput<'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