pub struct ModelSetAllowedModelsResult {
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 Clone for ModelSetAllowedModelsResult
impl Clone for ModelSetAllowedModelsResult
Source§fn clone(&self) -> ModelSetAllowedModelsResult
fn clone(&self) -> ModelSetAllowedModelsResult
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 ModelSetAllowedModelsResult
impl Debug for ModelSetAllowedModelsResult
Source§impl Default for ModelSetAllowedModelsResult
impl Default for ModelSetAllowedModelsResult
Source§fn default() -> ModelSetAllowedModelsResult
fn default() -> ModelSetAllowedModelsResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ModelSetAllowedModelsResult
impl<'de> Deserialize<'de> for ModelSetAllowedModelsResult
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 ModelSetAllowedModelsResult
impl RefUnwindSafe for ModelSetAllowedModelsResult
impl Send for ModelSetAllowedModelsResult
impl Sync for ModelSetAllowedModelsResult
impl Unpin for ModelSetAllowedModelsResult
impl UnsafeUnpin for ModelSetAllowedModelsResult
impl UnwindSafe for ModelSetAllowedModelsResult
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