pub struct Endpoint {
pub operation_key: OperationKey,
pub method: HttpMethod,
pub path: String,
}Expand description
Provider endpoint metadata used by routing and protocol modules.
Fields§
§operation_key: OperationKey§method: HttpMethod§path: StringProvider-relative path template, e.g. /v1/chat/completions.
Implementations§
Source§impl Endpoint
impl Endpoint
pub fn new( operation_key: OperationKey, method: HttpMethod, path: impl Into<String>, ) -> Self
pub fn content_generation( operation: Operation, kind: ContentGenerationKind, method: HttpMethod, path: impl Into<String>, ) -> Self
pub fn provider( operation: Operation, provider: Provider, method: HttpMethod, path: impl Into<String>, ) -> Self
pub const fn provider_family(&self) -> Provider
pub const fn group(&self) -> OperationGroup
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Endpoint
impl<'de> Deserialize<'de> for Endpoint
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 Endpoint
impl StructuralPartialEq for Endpoint
Auto Trait Implementations§
impl Freeze for Endpoint
impl RefUnwindSafe for Endpoint
impl Send for Endpoint
impl Sync for Endpoint
impl Unpin for Endpoint
impl UnsafeUnpin for Endpoint
impl UnwindSafe for Endpoint
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