#[non_exhaustive]pub struct UnsupportedOption {
pub option: Cow<'static, str>,
pub provider: String,
pub model: String,
pub reason: String,
}Expand description
An option the wire or model cannot honour. Carried by
ProviderError::UnsupportedOption.
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.option: Cow<'static, str>The GenerationOptions field name, such as "reasoning", a
provider option’s "<provider>.<section>.<field>", such as
"openrouter.*.provider", or the body key a model’s catalog entry
refuses, such as "temperature" or "tools".
provider: StringThe provider that refused it.
model: StringThe model the request resolved to.
reason: StringWhy it cannot be honoured.
Implementations§
Trait Implementations§
Source§impl Clone for UnsupportedOption
impl Clone for UnsupportedOption
Source§fn clone(&self) -> UnsupportedOption
fn clone(&self) -> UnsupportedOption
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 UnsupportedOption
impl Debug for UnsupportedOption
Source§impl Display for UnsupportedOption
impl Display for UnsupportedOption
impl Eq for UnsupportedOption
Source§impl Error for UnsupportedOption
impl Error for UnsupportedOption
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for UnsupportedOption
impl PartialEq for UnsupportedOption
impl StructuralPartialEq for UnsupportedOption
Auto Trait Implementations§
impl Forget for UnsupportedOption
impl Freeze for UnsupportedOption
impl Move for UnsupportedOption
impl RefUnwindSafe for UnsupportedOption
impl Send for UnsupportedOption
impl Sync for UnsupportedOption
impl Unpin for UnsupportedOption
impl UnsafeUnpin for UnsupportedOption
impl UnwindSafe for UnsupportedOption
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.