pub struct ProviderSwitch {
pub from: String,
pub to: String,
pub reason: String,
pub task: String,
}Expand description
A call that went to a different provider than the call before it.
Fields§
§from: String§to: String§reason: StringWhy each provider before to did not take the call; when none was
passed over, that to can take calls again.
task: StringThe kind of call: main, subagent, compact, ….
Trait Implementations§
Source§impl Clone for ProviderSwitch
impl Clone for ProviderSwitch
Source§impl Debug for ProviderSwitch
impl Debug for ProviderSwitch
Source§impl<'de> Deserialize<'de> for ProviderSwitch
impl<'de> Deserialize<'de> for ProviderSwitch
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 ProviderSwitch
Source§impl JsonSchema for ProviderSwitch
impl JsonSchema for ProviderSwitch
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 ProviderSwitch
impl PartialEq for ProviderSwitch
Source§impl Serialize for ProviderSwitch
impl Serialize for ProviderSwitch
impl StructuralPartialEq for ProviderSwitch
Auto Trait Implementations§
impl Forget for ProviderSwitch
impl Freeze for ProviderSwitch
impl Move for ProviderSwitch
impl RefUnwindSafe for ProviderSwitch
impl Send for ProviderSwitch
impl Sync for ProviderSwitch
impl Unpin for ProviderSwitch
impl UnsafeUnpin for ProviderSwitch
impl UnwindSafe for ProviderSwitch
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