Skip to main content

Model

Struct Model 

Source
#[non_exhaustive]
pub struct Model {
Show 66 fields pub id: String, pub slug: Option<String>, pub created: Option<i64>, pub object: Option<ModelObject>, pub owned_by: Option<String>, pub shutdown_date: Option<Option<String>>, pub display_name: Option<String>, pub description: Option<String>, pub instructions: Option<String>, pub context_window: Option<u64>, pub max_context_window: Option<u64>, pub max_output_tokens: Option<u64>, pub thinking_supported: Option<bool>, pub input_modalities: Option<Vec<String>>, pub output_modalities: Option<Vec<String>>, pub supported_parameters: Option<Vec<String>>, pub supported_reasoning_levels: Option<Vec<ModelReasoningLevel>>, pub default_reasoning_level: Option<ModelReasoningEffort>, pub service_tiers: Option<Vec<ModelServiceTier>>, pub default_service_tier: Option<String>, pub generation_methods: Option<Vec<String>>, pub supported_actions: Option<Vec<String>>, pub guardian: Option<GuardianModelPolicy>, pub shell_type: Option<ConfigShellToolType>, pub visibility: Option<ModelVisibility>, pub supported_in_api: Option<bool>, pub priority: Option<i32>, pub additional_speed_tiers: Option<Vec<String>>, pub available_access_programs: Option<ModelAccessPrograms>, pub availability_nux: Option<ModelAvailabilityNux>, pub upgrade: Option<ModelInfoUpgrade>, pub model_messages: Option<ModelMessages>, pub include_skills_usage_instructions: Option<bool>, pub include_plugin_usage_instructions: Option<bool>, pub include_apps_usage_instructions: Option<bool>, pub supports_reasoning_summary_parameter: Option<bool>, pub default_reasoning_summary: Option<ModelReasoningSummary>, pub support_verbosity: Option<bool>, pub default_verbosity: Option<TextVerbosity>, pub apply_patch_tool_type: Option<ApplyPatchToolType>, pub web_search_tool_type: Option<WebSearchToolType>, pub truncation_policy: Option<TruncationPolicyConfig>, pub supports_image_detail_original: Option<bool>, pub auto_compact_token_limit: Option<i64>, pub comp_hash: Option<String>, pub effective_context_window_percent: Option<i64>, pub experimental_supported_tools: Option<Vec<String>>, pub supports_search_tool: Option<bool>, pub supports_experimental_context: Option<bool>, pub use_responses_lite: Option<bool>, pub supports_reasoning_effort_updates: Option<bool>, pub node_repl_auto_review_required: Option<bool>, pub node_repl_disabled: Option<bool>, pub auto_review_model_override: Option<String>, pub model_specialty: Option<String>, pub tool_mode: Option<ToolMode>, pub multi_agent_version: Option<MultiAgentVersion>, pub multi_agent_reasoning_effort: Option<ModelReasoningEffort>, pub base_instructions: Option<String>, pub prefer_websockets: Option<bool>, pub supports_parallel_tool_calls: Option<bool>, pub supports_reasoning_summaries: Option<bool>, pub requires_sandboxed_review: Option<bool>, pub available_in_plans: Option<Vec<String>>, pub minimal_client_version: Option<ClientVersion>, pub rest: Rest,
}

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§id: String§slug: Option<String>§created: Option<i64>

Some compatible catalogs do not report a creation timestamp.

§object: Option<ModelObject>§owned_by: Option<String>§shutdown_date: Option<Option<String>>

Announced shutdown date (YYYY-MM-DD); explicit null when none is announced.

§display_name: Option<String>§description: Option<String>§instructions: Option<String>§context_window: Option<u64>§max_context_window: Option<u64>§max_output_tokens: Option<u64>§thinking_supported: Option<bool>§input_modalities: Option<Vec<String>>§output_modalities: Option<Vec<String>>§supported_parameters: Option<Vec<String>>§supported_reasoning_levels: Option<Vec<ModelReasoningLevel>>§default_reasoning_level: Option<ModelReasoningEffort>§service_tiers: Option<Vec<ModelServiceTier>>§default_service_tier: Option<String>§generation_methods: Option<Vec<String>>§supported_actions: Option<Vec<String>>§guardian: Option<GuardianModelPolicy>§shell_type: Option<ConfigShellToolType>§visibility: Option<ModelVisibility>§supported_in_api: Option<bool>§priority: Option<i32>§additional_speed_tiers: Option<Vec<String>>§available_access_programs: Option<ModelAccessPrograms>§availability_nux: Option<ModelAvailabilityNux>§upgrade: Option<ModelInfoUpgrade>§model_messages: Option<ModelMessages>§include_skills_usage_instructions: Option<bool>§include_plugin_usage_instructions: Option<bool>§include_apps_usage_instructions: Option<bool>§supports_reasoning_summary_parameter: Option<bool>§default_reasoning_summary: Option<ModelReasoningSummary>§support_verbosity: Option<bool>§default_verbosity: Option<TextVerbosity>§apply_patch_tool_type: Option<ApplyPatchToolType>§web_search_tool_type: Option<WebSearchToolType>§truncation_policy: Option<TruncationPolicyConfig>§supports_image_detail_original: Option<bool>§auto_compact_token_limit: Option<i64>§comp_hash: Option<String>§effective_context_window_percent: Option<i64>§experimental_supported_tools: Option<Vec<String>>§supports_search_tool: Option<bool>§supports_experimental_context: Option<bool>§use_responses_lite: Option<bool>§supports_reasoning_effort_updates: Option<bool>§node_repl_auto_review_required: Option<bool>§node_repl_disabled: Option<bool>§auto_review_model_override: Option<String>§model_specialty: Option<String>§tool_mode: Option<ToolMode>§multi_agent_version: Option<MultiAgentVersion>§multi_agent_reasoning_effort: Option<ModelReasoningEffort>§base_instructions: Option<String>§prefer_websockets: Option<bool>§supports_parallel_tool_calls: Option<bool>§supports_reasoning_summaries: Option<bool>§requires_sandboxed_review: Option<bool>§available_in_plans: Option<Vec<String>>§minimal_client_version: Option<ClientVersion>§rest: Rest

Implementations§

Source§

impl Model

Source

pub fn builder( id: String, created: Option<i64>, object: Option<ModelObject>, owned_by: Option<String>, ) -> ModelBuilder

Start a builder by supplying the required fields in declaration order.

Trait Implementations§

Source§

impl Clone for Model

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Model

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl DeclaredFields for Model

Source§

fn into_declared(self) -> Self

Source§

impl<'de> Deserialize<'de> for Model

Source§

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 Eq for Model

Source§

impl PartialEq for Model

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for Model

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Model

Auto Trait Implementations§

§

impl Freeze for Model

§

impl RefUnwindSafe for Model

§

impl Send for Model

§

impl Sync for Model

§

impl Unpin for Model

§

impl UnsafeUnpin for Model

§

impl UnwindSafe for Model

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ResourceSend for T
where T: Send + ?Sized,

Source§

impl<T> ResourceSync for T
where T: Sync + ?Sized,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.