pub struct ProtocolEntry {
pub protocol: String,
pub base_url: String,
pub rewrite_path: Option<String>,
}Expand description
A single protocol entry in a channel’s protocols JSON.
Each entry describes how the channel connects to an upstream for a specific protocol.
Fields§
§protocol: StringProtocol identifier: "anthropic_messages", "openai_chat", "openai_responses".
base_url: StringUpstream base URL for this protocol.
rewrite_path: Option<String>Optional path rewrite. When set, overrides the client request path entirely.
When None or empty, the original request path is passed through.
Trait Implementations§
Source§impl Clone for ProtocolEntry
impl Clone for ProtocolEntry
Source§fn clone(&self) -> ProtocolEntry
fn clone(&self) -> ProtocolEntry
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 ProtocolEntry
impl Debug for ProtocolEntry
Source§impl<'de> Deserialize<'de> for ProtocolEntry
impl<'de> Deserialize<'de> for ProtocolEntry
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
Source§impl PartialEq for ProtocolEntry
impl PartialEq for ProtocolEntry
Source§fn eq(&self, other: &ProtocolEntry) -> bool
fn eq(&self, other: &ProtocolEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ProtocolEntry
impl Serialize for ProtocolEntry
impl StructuralPartialEq for ProtocolEntry
Auto Trait Implementations§
impl Freeze for ProtocolEntry
impl RefUnwindSafe for ProtocolEntry
impl Send for ProtocolEntry
impl Sync for ProtocolEntry
impl Unpin for ProtocolEntry
impl UnsafeUnpin for ProtocolEntry
impl UnwindSafe for ProtocolEntry
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