pub struct NotebookFileInfo {
pub file_path: PathBuf,
pub file_size: u64,
pub created: Option<SystemTime>,
pub modified: Option<SystemTime>,
pub title: String,
pub cell_count: usize,
pub code_cells: usize,
pub format_version: String,
}
Expand description
笔记本文件信息
Fields§
§file_path: PathBuf
文件路径
file_size: u64
文件大小(字节)
created: Option<SystemTime>
创建时间
modified: Option<SystemTime>
修改时间
title: String
笔记本标题
cell_count: usize
单元格总数
code_cells: usize
代码单元格数
format_version: String
格式版本
Implementations§
Trait Implementations§
Source§impl Clone for NotebookFileInfo
impl Clone for NotebookFileInfo
Source§fn clone(&self) -> NotebookFileInfo
fn clone(&self) -> NotebookFileInfo
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 moreAuto Trait Implementations§
impl Freeze for NotebookFileInfo
impl RefUnwindSafe for NotebookFileInfo
impl Send for NotebookFileInfo
impl Sync for NotebookFileInfo
impl Unpin for NotebookFileInfo
impl UnwindSafe for NotebookFileInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more