pub struct ArchiveEntry {
pub id: String,
pub cwd: PathBuf,
pub title: String,
pub preview: String,
pub created_at: i64,
pub updated_at: i64,
pub roster: Vec<String>,
pub state: ArchiveState,
}Expand description
Immutable identity and presentation data for one archived session.
Fields§
§id: String§cwd: PathBufCanonical project directory recorded at creation time.
title: String§preview: String§created_at: i64Unix nanoseconds since the epoch.
updated_at: i64Unix nanoseconds since the epoch; the archive advances this at durability boundaries so browsers can order by last activity.
roster: Vec<String>§state: ArchiveStateImplementations§
Source§impl ArchiveEntry
impl ArchiveEntry
pub fn created_time(&self) -> Option<OffsetDateTime>
pub fn updated_time(&self) -> Option<OffsetDateTime>
Trait Implementations§
Source§impl Clone for ArchiveEntry
impl Clone for ArchiveEntry
Source§fn clone(&self) -> ArchiveEntry
fn clone(&self) -> ArchiveEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ArchiveEntry
impl Debug for ArchiveEntry
Source§impl<'de> Deserialize<'de> for ArchiveEntry
impl<'de> Deserialize<'de> for ArchiveEntry
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 ArchiveEntry
Source§impl PartialEq for ArchiveEntry
impl PartialEq for ArchiveEntry
Source§impl Serialize for ArchiveEntry
impl Serialize for ArchiveEntry
impl StructuralPartialEq for ArchiveEntry
Auto Trait Implementations§
impl Freeze for ArchiveEntry
impl RefUnwindSafe for ArchiveEntry
impl Send for ArchiveEntry
impl Sync for ArchiveEntry
impl Unpin for ArchiveEntry
impl UnsafeUnpin for ArchiveEntry
impl UnwindSafe for ArchiveEntry
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