pub struct ProviderSwitchedPayload {
pub from: String,
pub to: String,
pub reason: String,
pub task: String,
}Expand description
A model call that went to a different provider than the session’s call before it.
Fields§
§from: String§to: String§reason: StringWhy each provider before to in the order did not take the call; when
none was passed over, that to can take calls again.
task: Stringmain, subagent, compact, memory, title, web_search,
web_fetch.
Trait Implementations§
Source§impl Clone for ProviderSwitchedPayload
impl Clone for ProviderSwitchedPayload
Source§fn clone(&self) -> ProviderSwitchedPayload
fn clone(&self) -> ProviderSwitchedPayload
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 ProviderSwitchedPayload
impl Debug for ProviderSwitchedPayload
Source§impl JsonSchema for ProviderSwitchedPayload
impl JsonSchema for ProviderSwitchedPayload
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 Serialize for ProviderSwitchedPayload
impl Serialize for ProviderSwitchedPayload
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Forget for ProviderSwitchedPayload
impl Freeze for ProviderSwitchedPayload
impl Move for ProviderSwitchedPayload
impl RefUnwindSafe for ProviderSwitchedPayload
impl Send for ProviderSwitchedPayloadwhere
RawVecInner: Send,
impl Sync for ProviderSwitchedPayloadwhere
RawVecInner: Sync,
impl Unpin for ProviderSwitchedPayload
impl UnsafeUnpin for ProviderSwitchedPayload
impl UnwindSafe for ProviderSwitchedPayloadwhere
RawVecInner: UnwindSafe,
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