pub struct OpenSessionOptions {
pub endpoint: Value,
pub device_id: String,
pub required_features: Vec<FeatureId>,
pub lockfile_digest: Hash,
}Expand description
Options for Provider::open_session (spine §4.2
OpenSessionOptions).
Fields§
§endpoint: ValueProvider-defined endpoint shape (ProviderEndpoint; devicerail:
{ spawn: SpawnSpec } | { attach: AttachSpec }). Kept opaque JSON at
the SPI layer — each provider deserializes its own shape.
device_id: StringDevice to bind. devices.list / device.select are
connection-local: one ProviderSession owns one client instance
exclusively, never shared (04 §1 rule 4).
required_features: Vec<FeatureId>The IR’s requiredFeatures, forwarded in full into
FeatureOffer.required — protocol semantics fail the handshake when
unmet (free enforcement, spine §4.1).
lockfile_digest: HashAttestation baseline: the digest the live world must match.
Trait Implementations§
Source§impl Clone for OpenSessionOptions
impl Clone for OpenSessionOptions
Source§fn clone(&self) -> OpenSessionOptions
fn clone(&self) -> OpenSessionOptions
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 OpenSessionOptions
impl Debug for OpenSessionOptions
Source§impl<'de> Deserialize<'de> for OpenSessionOptions
impl<'de> Deserialize<'de> for OpenSessionOptions
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 OpenSessionOptions
impl JsonSchema for OpenSessionOptions
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 moreSource§impl PartialEq for OpenSessionOptions
impl PartialEq for OpenSessionOptions
Source§impl Serialize for OpenSessionOptions
impl Serialize for OpenSessionOptions
impl StructuralPartialEq for OpenSessionOptions
Auto Trait Implementations§
impl Freeze for OpenSessionOptions
impl RefUnwindSafe for OpenSessionOptions
impl Send for OpenSessionOptions
impl Sync for OpenSessionOptions
impl Unpin for OpenSessionOptions
impl UnsafeUnpin for OpenSessionOptions
impl UnwindSafe for OpenSessionOptions
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