pub struct CatalogFileConvertResult {
pub output_path: PathBuf,
pub source_format: CatalogFileFormat,
pub target_format: CatalogFileFormat,
pub source_mode: CatalogMode,
pub target_mode: CatalogMode,
pub locale: Option<String>,
pub message_count: usize,
pub diagnostics: Vec<Diagnostic>,
}Available on crate feature
catalog only.Expand description
Result returned by a catalog file conversion.
Fields§
§output_path: PathBufOutput path replaced by the operation.
source_format: CatalogFileFormatResolved source file format.
target_format: CatalogFileFormatResolved target file format.
source_mode: CatalogModeResolved source mode.
target_mode: CatalogModeResolved target mode.
locale: Option<String>Validated catalog locale, when one was declared or supplied.
message_count: usizeNumber of converted messages, including obsolete entries.
diagnostics: Vec<Diagnostic>Non-fatal diagnostics collected while parsing and rendering.
Trait Implementations§
Source§impl Clone for CatalogFileConvertResult
impl Clone for CatalogFileConvertResult
Source§fn clone(&self) -> CatalogFileConvertResult
fn clone(&self) -> CatalogFileConvertResult
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 Debug for CatalogFileConvertResult
impl Debug for CatalogFileConvertResult
impl Eq for CatalogFileConvertResult
Source§impl PartialEq for CatalogFileConvertResult
impl PartialEq for CatalogFileConvertResult
impl StructuralPartialEq for CatalogFileConvertResult
Auto Trait Implementations§
impl Freeze for CatalogFileConvertResult
impl RefUnwindSafe for CatalogFileConvertResult
impl Send for CatalogFileConvertResult
impl Sync for CatalogFileConvertResult
impl Unpin for CatalogFileConvertResult
impl UnsafeUnpin for CatalogFileConvertResult
impl UnwindSafe for CatalogFileConvertResult
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