#[non_exhaustive]pub enum QuickResponseContentProvider {
Content(String),
Unknown,
}Expand description
The container quick response content.
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.
Content(String)
The content of the quick response.
Unknown
The Unknown variant represents cases where new union variant was received. Consider upgrading the SDK to the latest available version.
An unknown enum variant
Note: If you encounter this error, consider upgrading your SDK to the latest version.
The Unknown variant represents cases where the server sent a value that wasn’t recognized
by the client. This can happen when the server adds new functionality, but the client has not been updated.
To investigate this, consider turning on debug logging to print the raw HTTP response.
Implementations§
source§impl QuickResponseContentProvider
impl QuickResponseContentProvider
sourcepub fn as_content(&self) -> Result<&String, &Self>
pub fn as_content(&self) -> Result<&String, &Self>
sourcepub fn is_content(&self) -> bool
pub fn is_content(&self) -> bool
Returns true if this is a Content.
sourcepub fn is_unknown(&self) -> bool
pub fn is_unknown(&self) -> bool
Returns true if the enum instance is the Unknown variant.
Trait Implementations§
source§impl Clone for QuickResponseContentProvider
impl Clone for QuickResponseContentProvider
source§fn clone(&self) -> QuickResponseContentProvider
fn clone(&self) -> QuickResponseContentProvider
Returns a copy 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 QuickResponseContentProvider
impl Debug for QuickResponseContentProvider
source§impl PartialEq for QuickResponseContentProvider
impl PartialEq for QuickResponseContentProvider
source§fn eq(&self, other: &QuickResponseContentProvider) -> bool
fn eq(&self, other: &QuickResponseContentProvider) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for QuickResponseContentProvider
Auto Trait Implementations§
impl RefUnwindSafe for QuickResponseContentProvider
impl Send for QuickResponseContentProvider
impl Sync for QuickResponseContentProvider
impl Unpin for QuickResponseContentProvider
impl UnwindSafe for QuickResponseContentProvider
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.