pub struct Format {
pub source_language: String,
pub version: String,
pub strings: HashMap<String, Item>,
}Fields§
§source_language: String§version: String§strings: HashMap<String, Item>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Format
impl<'de> Deserialize<'de> for Format
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 Parser for Format
impl Parser for Format
Source§fn from_reader<R: BufRead>(reader: R) -> Result<Self, Error>
fn from_reader<R: BufRead>(reader: R) -> Result<Self, Error>
Parses the xcstrings format from a reader.
Source§fn to_writer<W: Write>(&self, writer: W) -> Result<(), Error>
fn to_writer<W: Write>(&self, writer: W) -> Result<(), Error>
Serializes the xcstrings format to a writer.
Source§fn read_from<P: AsRef<Path>>(path: P) -> Result<Self, Error>where
Self: Sized,
fn read_from<P: AsRef<Path>>(path: P) -> Result<Self, Error>where
Self: Sized,
Parse from file path.
impl Eq for Format
impl StructuralPartialEq for Format
Auto Trait Implementations§
impl Freeze for Format
impl RefUnwindSafe for Format
impl Send for Format
impl Sync for Format
impl Unpin for Format
impl UnwindSafe for Format
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