pub struct SessionModelSetAllowedModelsResult {
pub allowed_models: Option<Vec<String>>,
pub effective_allowed_models: Option<Vec<String>>,
pub fallback_model: Option<String>,
pub model_id: Option<String>,
}Expand description
The applied host allowlist and effective session model policy after intersection.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§allowed_models: Option<Vec<String>>Normalized host allowlist. Omitted when the host restriction was cleared, or when a relay client does not return the host policy.
effective_allowed_models: Option<Vec<String>>Effective exact IDs or repository policy patterns after applying the host restriction. Omitted by relay clients that do not return the host policy.
fallback_model: Option<String>Effective deterministic fallback model, when the policy defines one.
model_id: Option<String>Selected session model after reconciling a now-disallowed concrete selection.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SessionModelSetAllowedModelsResult
impl<'de> Deserialize<'de> for SessionModelSetAllowedModelsResult
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
Auto Trait Implementations§
impl Freeze for SessionModelSetAllowedModelsResult
impl RefUnwindSafe for SessionModelSetAllowedModelsResult
impl Send for SessionModelSetAllowedModelsResult
impl Sync for SessionModelSetAllowedModelsResult
impl Unpin for SessionModelSetAllowedModelsResult
impl UnsafeUnpin for SessionModelSetAllowedModelsResult
impl UnwindSafe for SessionModelSetAllowedModelsResult
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