pub struct SelectModel {
pub authority_binding: String,
pub selected_profile: String,
pub model_id: String,
pub idempotency_key: String,
pub command_fingerprint: String,
pub occurred_at: DateTime<Utc>,
pub host_event_publication: Option<PendingHostEventPublication>,
}Expand description
Atomic model-selection mutation request.
Fields§
Stable trusted authority binding that owns the state and idempotency namespace.
selected_profile: StringProfile to select.
model_id: StringEffective model identifier resolved by the caller’s catalog.
idempotency_key: StringIdempotency key scoped to authority_binding.
command_fingerprint: StringCanonical fingerprint of the normalized authorized command.
occurred_at: DateTime<Utc>Authoritative mutation timestamp.
host_event_publication: Option<PendingHostEventPublication>Optional product-neutral durable host event to enqueue in the same transaction.
Implementations§
Source§impl SelectModel
impl SelectModel
Sourcepub fn validate(&self) -> SessionStoreResult<()>
pub fn validate(&self) -> SessionStoreResult<()>
Validate mutation input.
§Errors
Returns an error when required strings or optional event evidence are invalid.
Trait Implementations§
Source§impl Clone for SelectModel
impl Clone for SelectModel
Source§fn clone(&self) -> SelectModel
fn clone(&self) -> SelectModel
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 SelectModel
impl Debug for SelectModel
impl Eq for SelectModel
Source§impl PartialEq for SelectModel
impl PartialEq for SelectModel
impl StructuralPartialEq for SelectModel
Auto Trait Implementations§
impl Freeze for SelectModel
impl RefUnwindSafe for SelectModel
impl Send for SelectModel
impl Sync for SelectModel
impl Unpin for SelectModel
impl UnsafeUnpin for SelectModel
impl UnwindSafe for SelectModel
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