pub struct OpenWorkspaceResponse {
pub workspace_id: Option<String>,
pub log_path: String,
pub lease_token: String,
pub lease_expires_at: String,
}Expand description
JSON shape of mimir_open_workspace’s response — the lease
info the caller must echo back to write tools.
Fields§
§workspace_id: Option<String>Truncated 8-byte hex of the workspace id, if a git workspace
was detected at the log path’s parent. None for non-git
workspaces.
log_path: StringCanonical filesystem path of the opened log.
lease_token: String128-bit lease token (32-char lowercase hex). Echo this back in every write call until release or expiry.
lease_expires_at: StringISO-8601 lease expiry. After this time, the next write call
will fail with lease_expired.
Trait Implementations§
Source§impl Clone for OpenWorkspaceResponse
impl Clone for OpenWorkspaceResponse
Source§fn clone(&self) -> OpenWorkspaceResponse
fn clone(&self) -> OpenWorkspaceResponse
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 OpenWorkspaceResponse
impl Debug for OpenWorkspaceResponse
Source§impl<'de> Deserialize<'de> for OpenWorkspaceResponse
impl<'de> Deserialize<'de> for OpenWorkspaceResponse
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 OpenWorkspaceResponse
impl RefUnwindSafe for OpenWorkspaceResponse
impl Send for OpenWorkspaceResponse
impl Sync for OpenWorkspaceResponse
impl Unpin for OpenWorkspaceResponse
impl UnsafeUnpin for OpenWorkspaceResponse
impl UnwindSafe for OpenWorkspaceResponse
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