pub struct FileSummary {
pub source_language: String,
pub total_keys: usize,
pub translatable_keys: usize,
pub locales: Vec<String>,
pub keys_by_state: BTreeMap<String, usize>,
}Expand description
Summary of a parsed .xcstrings file, returned by parse_xcstrings.
Fields§
§source_language: StringSource language code (e.g., “en”)
total_keys: usizeTotal number of keys in the file (including non-translatable)
translatable_keys: usizeNumber of keys that should be translated (shouldTranslate=true)
locales: Vec<String>All locale codes present in the file
keys_by_state: BTreeMap<String, usize>Key count per extraction state (e.g., {“extracted_with_value”: 42, “manual”: 3})
Trait Implementations§
Source§impl Clone for FileSummary
impl Clone for FileSummary
Source§fn clone(&self) -> FileSummary
fn clone(&self) -> FileSummary
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 FileSummary
impl Debug for FileSummary
Source§impl<'de> Deserialize<'de> for FileSummary
impl<'de> Deserialize<'de> for FileSummary
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for FileSummary
impl JsonSchema for FileSummary
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for FileSummary
impl RefUnwindSafe for FileSummary
impl Send for FileSummary
impl Sync for FileSummary
impl Unpin for FileSummary
impl UnsafeUnpin for FileSummary
impl UnwindSafe for FileSummary
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