pub struct WorkspaceEntry {
pub name: String,
pub path: PathBuf,
pub last_accessed: Option<DateTime<Utc>>,
pub created_at: Option<DateTime<Utc>>,
}Expand description
Entry in the global workspace registry (~/.clawft/workspaces.json).
Timestamps are stored as DateTime<Utc>. For backward compatibility with
registries that stored ISO 8601 strings, the custom deserializer accepts
both RFC 3339 strings and native DateTime<Utc> JSON representations.
Fields§
§name: StringHuman-readable workspace name (unique within registry).
path: PathBufAbsolute path to the workspace root directory.
last_accessed: Option<DateTime<Utc>>UTC timestamp of the last time this workspace was accessed.
created_at: Option<DateTime<Utc>>UTC timestamp of when the workspace was first created.
Trait Implementations§
Source§impl Clone for WorkspaceEntry
impl Clone for WorkspaceEntry
Source§fn clone(&self) -> WorkspaceEntry
fn clone(&self) -> WorkspaceEntry
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 moreSource§impl Debug for WorkspaceEntry
impl Debug for WorkspaceEntry
Source§impl<'de> Deserialize<'de> for WorkspaceEntry
impl<'de> Deserialize<'de> for WorkspaceEntry
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 WorkspaceEntry
impl RefUnwindSafe for WorkspaceEntry
impl Send for WorkspaceEntry
impl Sync for WorkspaceEntry
impl Unpin for WorkspaceEntry
impl UnsafeUnpin for WorkspaceEntry
impl UnwindSafe for WorkspaceEntry
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