pub struct RoutingSection {
pub strategy: Option<String>,
pub embedding_provider: Option<String>,
pub summarization_provider: Option<String>,
pub chat_provider: Option<String>,
pub sort: Option<String>,
pub zdr: Option<bool>,
pub provider_order: Option<Vec<String>>,
pub data_collection: Option<String>,
}Fields§
§strategy: Option<String>Routing strategy hint (first|round_robin|random|least_latency).
embedding_provider: Option<String>Preferred provider name for embeddings.
summarization_provider: Option<String>Preferred provider name for summarization.
chat_provider: Option<String>Preferred provider name for chat completions.
sort: Option<String>OpenRouter sort preference (e.g., “price”, “throughput”).
zdr: Option<bool>Zero Data Retention opt-in.
provider_order: Option<Vec<String>>Explicit provider ordering for OpenRouter.
data_collection: Option<String>OpenRouter data collection preference (“deny” | “allow”).
Trait Implementations§
Source§impl Clone for RoutingSection
impl Clone for RoutingSection
Source§fn clone(&self) -> RoutingSection
fn clone(&self) -> RoutingSection
Returns a duplicate of the value. Read more
1.0.0 · 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 RoutingSection
impl Debug for RoutingSection
Source§impl<'de> Deserialize<'de> for RoutingSection
impl<'de> Deserialize<'de> for RoutingSection
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
Auto Trait Implementations§
impl Freeze for RoutingSection
impl RefUnwindSafe for RoutingSection
impl Send for RoutingSection
impl Sync for RoutingSection
impl Unpin for RoutingSection
impl UnwindSafe for RoutingSection
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