pub struct IndexEntry {
pub version: String,
pub abi: Option<u32>,
pub root: PathBuf,
pub source: InstallSource,
pub installed_at: u64,
}Expand description
一条安装记录。
Fields§
§version: String安装的版本。
abi: Option<u32>manifest 里声明的 ABI 版本(宿主自用)。
root: PathBuf安装目录的绝对路径。
source: InstallSource安装来源。
installed_at: u64安装时刻(Unix 秒)。用整数而不是 RFC3339 字符串,省掉一个日期库依赖。
Trait Implementations§
Source§impl Clone for IndexEntry
impl Clone for IndexEntry
Source§impl Debug for IndexEntry
impl Debug for IndexEntry
Source§impl<'de> Deserialize<'de> for IndexEntry
impl<'de> Deserialize<'de> for IndexEntry
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
Auto Trait Implementations§
impl Freeze for IndexEntry
impl RefUnwindSafe for IndexEntry
impl Send for IndexEntry
impl Sync for IndexEntry
impl Unpin for IndexEntry
impl UnsafeUnpin for IndexEntry
impl UnwindSafe for IndexEntry
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