pub struct ModalityGet<'a> { /* private fields */ }Expand description
Builder for Client::modality_get
Implementations§
Source§impl<'a> ModalityGet<'a>
impl<'a> ModalityGet<'a>
pub fn new(client: &'a Client) -> Self
pub fn modality<V>(self, value: V) -> Selfwhere
V: TryInto<CanonicalModality>,
Sourcepub async fn send(
self,
) -> Result<ResponseValue<ModalityCatalogEntry>, Error<ModalityGetResponse>>
pub async fn send( self, ) -> Result<ResponseValue<ModalityCatalogEntry>, Error<ModalityGetResponse>>
Sends a GET request to /v1/modalities/{modality}
Trait Implementations§
Source§impl<'a> Clone for ModalityGet<'a>
impl<'a> Clone for ModalityGet<'a>
Source§fn clone(&self) -> ModalityGet<'a>
fn clone(&self) -> ModalityGet<'a>
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 moreAuto Trait Implementations§
impl<'a> !RefUnwindSafe for ModalityGet<'a>
impl<'a> !UnwindSafe for ModalityGet<'a>
impl<'a> Freeze for ModalityGet<'a>
impl<'a> Send for ModalityGet<'a>
impl<'a> Sync for ModalityGet<'a>
impl<'a> Unpin for ModalityGet<'a>
impl<'a> UnsafeUnpin for ModalityGet<'a>
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