pub struct DurableModelSelection {
pub authority_binding: String,
pub selected_profile: String,
pub model_id: String,
pub revision: u64,
pub updated_at: DateTime<Utc>,
}Expand description
Authority-bound durable model selection.
authority_binding is a trusted host-derived binding (for example an authorization-scope
fingerprint), not a caller-selected display name.
Fields§
Stable authority binding that owns this selection.
selected_profile: StringSelected profile identifier.
model_id: StringEffective model identifier resolved by the caller’s catalog.
revision: u64Monotonic selection revision, beginning at one.
updated_at: DateTime<Utc>Time at which this revision was committed.
Implementations§
Source§impl DurableModelSelection
impl DurableModelSelection
Sourcepub fn validate(&self) -> SessionStoreResult<()>
pub fn validate(&self) -> SessionStoreResult<()>
Validate durable model-selection invariants.
§Errors
Returns an error when an identity is empty or the revision is zero.
Trait Implementations§
Source§impl Clone for DurableModelSelection
impl Clone for DurableModelSelection
Source§fn clone(&self) -> DurableModelSelection
fn clone(&self) -> DurableModelSelection
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 DurableModelSelection
impl Debug for DurableModelSelection
Source§impl<'de> Deserialize<'de> for DurableModelSelection
impl<'de> Deserialize<'de> for DurableModelSelection
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
impl Eq for DurableModelSelection
Source§impl PartialEq for DurableModelSelection
impl PartialEq for DurableModelSelection
Source§impl Serialize for DurableModelSelection
impl Serialize for DurableModelSelection
impl StructuralPartialEq for DurableModelSelection
Source§impl VersionedRecord for DurableModelSelection
impl VersionedRecord for DurableModelSelection
Source§const ALLOW_BARE_V0: bool = false
const ALLOW_BARE_V0: bool = false
Whether this record explicitly accepts a previous bare-JSON v0 shape.
Source§fn decode_version(
version: u32,
payload: Value,
) -> Result<Self, VersionedRecordError>where
Self: DeserializeOwned,
fn decode_version(
version: u32,
payload: Value,
) -> Result<Self, VersionedRecordError>where
Self: DeserializeOwned,
Decode one enveloped payload version. Read more
Source§fn decode_bare_v0(payload: Value) -> Result<Self, VersionedRecordError>where
Self: DeserializeOwned,
fn decode_bare_v0(payload: Value) -> Result<Self, VersionedRecordError>where
Self: DeserializeOwned,
Decode the explicitly supported bare-JSON v0 shape. Read more
Auto Trait Implementations§
impl Freeze for DurableModelSelection
impl RefUnwindSafe for DurableModelSelection
impl Send for DurableModelSelection
impl Sync for DurableModelSelection
impl Unpin for DurableModelSelection
impl UnsafeUnpin for DurableModelSelection
impl UnwindSafe for DurableModelSelection
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