#[non_exhaustive]pub enum Operation {
Show 14 variants
ListModels,
GetModel,
CountTokens,
GenerateContent,
StreamGenerateContent,
CreateImage,
EditImage,
WebSearch,
Rerank,
CreateEmbedding,
CompactContent,
CreateConversation,
CreateRealtimeCall,
ConnectRealtime,
}Expand description
Provider-neutral operation name.
Variants are capability-oriented. A provider module should model only the variants that the provider actually exposes; unsupported operations are not represented by synthetic request/response types.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ListModels
GetModel
CountTokens
GenerateContent
StreamGenerateContent
CreateImage
EditImage
WebSearch
Rerank
CreateEmbedding
CompactContent
CreateConversation
CreateRealtimeCall
ConnectRealtime
Implementations§
Source§impl Operation
impl Operation
Sourcepub const fn group(self) -> OperationGroup
pub const fn group(self) -> OperationGroup
Return the operation group for this operation.
Sourcepub const fn has_request_body(self) -> bool
pub const fn has_request_body(self) -> bool
Whether requests of this operation carry a JSON body.
Trait Implementations§
impl Copy for Operation
Source§impl<'de> Deserialize<'de> for Operation
impl<'de> Deserialize<'de> for Operation
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 Operation
impl StructuralPartialEq for Operation
Auto Trait Implementations§
impl Freeze for Operation
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnsafeUnpin for Operation
impl UnwindSafe for Operation
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