#[non_exhaustive]pub enum ProviderActivityKind {
Search,
}Expand description
The kind of hosted activity. Only appears inside MessageContent::ProviderActivity.
#[non_exhaustive] is used so that adding CodeExecution / ImageGeneration etc.
later is not a breaking change.
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.
Search
Hosted web search.
Trait Implementations§
Source§impl Clone for ProviderActivityKind
impl Clone for ProviderActivityKind
Source§fn clone(&self) -> ProviderActivityKind
fn clone(&self) -> ProviderActivityKind
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 moreimpl Copy for ProviderActivityKind
Source§impl Debug for ProviderActivityKind
impl Debug for ProviderActivityKind
Source§impl<'de> Deserialize<'de> for ProviderActivityKind
impl<'de> Deserialize<'de> for ProviderActivityKind
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 ProviderActivityKind
Source§impl PartialEq for ProviderActivityKind
impl PartialEq for ProviderActivityKind
Source§fn eq(&self, other: &ProviderActivityKind) -> bool
fn eq(&self, other: &ProviderActivityKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ProviderActivityKind
impl Serialize for ProviderActivityKind
impl StructuralPartialEq for ProviderActivityKind
Auto Trait Implementations§
impl Freeze for ProviderActivityKind
impl RefUnwindSafe for ProviderActivityKind
impl Send for ProviderActivityKind
impl Sync for ProviderActivityKind
impl Unpin for ProviderActivityKind
impl UnsafeUnpin for ProviderActivityKind
impl UnwindSafe for ProviderActivityKind
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