pub struct StatusReport {
pub workspace_id: Option<String>,
pub log_path: Option<String>,
pub store_open: bool,
pub lease_held: bool,
pub lease_expires_at: Option<String>,
pub version: String,
}Expand description
JSON shape of the mimir_status tool’s response payload.
Fields§
§workspace_id: Option<String>Truncated 8-byte hex of the detected workspace id, if any.
log_path: Option<String>Filesystem path of the canonical log, if a workspace store has been opened.
store_open: booltrue once a Store has been opened against log_path.
Read tools require this.
lease_held: booltrue while a write lease is held. Write tools (mimir_write,
mimir_close_episode) require a valid lease token; reads are
unaffected.
lease_expires_at: Option<String>ISO-8601 lease expiry, if a lease is currently held. Clients inspecting status (rather than holding the lease themselves) can use this to estimate when the workspace will free up.
version: StringCrate version reported by CARGO_PKG_VERSION at build time.
Trait Implementations§
Source§impl Clone for StatusReport
impl Clone for StatusReport
Source§fn clone(&self) -> StatusReport
fn clone(&self) -> StatusReport
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 StatusReport
impl Debug for StatusReport
Source§impl<'de> Deserialize<'de> for StatusReport
impl<'de> Deserialize<'de> for StatusReport
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
Source§impl PartialEq for StatusReport
impl PartialEq for StatusReport
Source§impl Serialize for StatusReport
impl Serialize for StatusReport
impl Eq for StatusReport
impl StructuralPartialEq for StatusReport
Auto Trait Implementations§
impl Freeze for StatusReport
impl RefUnwindSafe for StatusReport
impl Send for StatusReport
impl Sync for StatusReport
impl Unpin for StatusReport
impl UnsafeUnpin for StatusReport
impl UnwindSafe for StatusReport
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.