pub enum AnthropicSpeed {
Standard,
Fast,
}Expand description
Native Anthropic Messages API speed. Unset configuration uses standard speed.
Variants§
Implementations§
Source§impl AnthropicSpeed
impl AnthropicSpeed
pub const fn as_str(self) -> &'static str
Sourcepub fn supports_model(model: &str) -> bool
pub fn supports_model(model: &str) -> bool
Exact native IDs, including the existing dated snapshot normalization.
Sourcepub fn requires_beta(model: &str) -> bool
pub fn requires_beta(model: &str) -> bool
Preview models require the beta for either serialized speed value.
Sourcepub fn is_native_endpoint(base_url: &str) -> bool
pub fn is_native_endpoint(base_url: &str) -> bool
Only the standard native Messages endpoint supports this integration.
Sourcepub fn resolve_base_url(configured: Option<&str>) -> String
pub fn resolve_base_url(configured: Option<&str>) -> String
Explicit config wins over ANTHROPIC_BASE_URL, then the native default.
Trait Implementations§
Source§impl Clone for AnthropicSpeed
impl Clone for AnthropicSpeed
impl Copy for AnthropicSpeed
Source§impl Debug for AnthropicSpeed
impl Debug for AnthropicSpeed
Source§impl<'de> Deserialize<'de> for AnthropicSpeed
impl<'de> Deserialize<'de> for AnthropicSpeed
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 AnthropicSpeed
Source§impl JsonSchema for AnthropicSpeed
impl JsonSchema for AnthropicSpeed
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for AnthropicSpeed
impl PartialEq for AnthropicSpeed
Source§impl Serialize for AnthropicSpeed
impl Serialize for AnthropicSpeed
impl StructuralPartialEq for AnthropicSpeed
Auto Trait Implementations§
impl Freeze for AnthropicSpeed
impl RefUnwindSafe for AnthropicSpeed
impl Send for AnthropicSpeed
impl Sync for AnthropicSpeed
impl Unpin for AnthropicSpeed
impl UnsafeUnpin for AnthropicSpeed
impl UnwindSafe for AnthropicSpeed
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.