pub struct FileMeta {
pub path: Option<PathBuf>,
pub encoding: String,
pub bom: bool,
pub line_ending: LineEnding,
pub mixed_line_endings: bool,
}Expand description
How the file was stored on disk. Filled in and used only by fileio; core
never touches the filesystem.
Fields§
§path: Option<PathBuf>§encoding: StringWHATWG encoding label, e.g. “UTF-8”, “UTF-16LE”, “windows-1252”.
bom: bool§line_ending: LineEnding§mixed_line_endings: boolTrait Implementations§
Source§impl<'de> Deserialize<'de> for FileMeta
impl<'de> Deserialize<'de> for FileMeta
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
impl Eq for FileMeta
impl StructuralPartialEq for FileMeta
Auto Trait Implementations§
impl Freeze for FileMeta
impl RefUnwindSafe for FileMeta
impl Send for FileMeta
impl Sync for FileMeta
impl Unpin for FileMeta
impl UnsafeUnpin for FileMeta
impl UnwindSafe for FileMeta
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