pub struct OpenWorkspaceArgs {
pub log_path: String,
pub ttl_seconds: Option<u64>,
}Expand description
Input shape for mimir_open_workspace.
Fields§
§log_path: StringFilesystem path of the canonical log to open. Created if
it does not exist (with the 8-byte MIMR magic header
written by mimir_core::log::CanonicalLog::open).
ttl_seconds: Option<u64>Lease TTL in seconds. Defaults to
DEFAULT_LEASE_TTL_SECONDS (1800 = 30 min). Capped at
MAX_LEASE_TTL_SECONDS (86400 = 24h). 0 is rejected.
Trait Implementations§
Source§impl Clone for OpenWorkspaceArgs
impl Clone for OpenWorkspaceArgs
Source§fn clone(&self) -> OpenWorkspaceArgs
fn clone(&self) -> OpenWorkspaceArgs
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 OpenWorkspaceArgs
impl Debug for OpenWorkspaceArgs
Source§impl<'de> Deserialize<'de> for OpenWorkspaceArgs
impl<'de> Deserialize<'de> for OpenWorkspaceArgs
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 JsonSchema for OpenWorkspaceArgs
impl JsonSchema for OpenWorkspaceArgs
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for OpenWorkspaceArgs
impl RefUnwindSafe for OpenWorkspaceArgs
impl Send for OpenWorkspaceArgs
impl Sync for OpenWorkspaceArgs
impl Unpin for OpenWorkspaceArgs
impl UnsafeUnpin for OpenWorkspaceArgs
impl UnwindSafe for OpenWorkspaceArgs
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