pub struct Interactions { /* private fields */ }Implementations§
Source§impl Interactions
impl Interactions
Sourcepub async fn create(
&self,
config: CreateInteractionConfig,
) -> Result<Interaction>
pub async fn create( &self, config: CreateInteractionConfig, ) -> Result<Interaction>
Sourcepub async fn create_with_config(
&self,
config: CreateInteractionConfig,
) -> Result<Interaction>
pub async fn create_with_config( &self, config: CreateInteractionConfig, ) -> Result<Interaction>
Sourcepub async fn create_stream(
&self,
config: CreateInteractionConfig,
) -> Result<Pin<Box<dyn Stream<Item = Result<InteractionSseEvent>> + Send>>>
pub async fn create_stream( &self, config: CreateInteractionConfig, ) -> Result<Pin<Box<dyn Stream<Item = Result<InteractionSseEvent>> + Send>>>
Sourcepub async fn get_with_config(
&self,
id: impl AsRef<str>,
config: GetInteractionConfig,
) -> Result<Interaction>
pub async fn get_with_config( &self, id: impl AsRef<str>, config: GetInteractionConfig, ) -> Result<Interaction>
Sourcepub async fn get_stream(
&self,
id: impl AsRef<str>,
) -> Result<Pin<Box<dyn Stream<Item = Result<InteractionSseEvent>> + Send>>>
pub async fn get_stream( &self, id: impl AsRef<str>, ) -> Result<Pin<Box<dyn Stream<Item = Result<InteractionSseEvent>> + Send>>>
Sourcepub async fn get_stream_with_config(
&self,
id: impl AsRef<str>,
config: GetInteractionConfig,
) -> Result<Pin<Box<dyn Stream<Item = Result<InteractionSseEvent>> + Send>>>
pub async fn get_stream_with_config( &self, id: impl AsRef<str>, config: GetInteractionConfig, ) -> Result<Pin<Box<dyn Stream<Item = Result<InteractionSseEvent>> + Send>>>
Sourcepub async fn delete_with_config(
&self,
id: impl AsRef<str>,
config: DeleteInteractionConfig,
) -> Result<()>
pub async fn delete_with_config( &self, id: impl AsRef<str>, config: DeleteInteractionConfig, ) -> Result<()>
Sourcepub async fn cancel_with_config(
&self,
id: impl AsRef<str>,
config: CancelInteractionConfig,
) -> Result<Interaction>
pub async fn cancel_with_config( &self, id: impl AsRef<str>, config: CancelInteractionConfig, ) -> Result<Interaction>
Trait Implementations§
Source§impl Clone for Interactions
impl Clone for Interactions
Source§fn clone(&self) -> Interactions
fn clone(&self) -> Interactions
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for Interactions
impl !RefUnwindSafe for Interactions
impl Send for Interactions
impl Sync for Interactions
impl Unpin for Interactions
impl UnsafeUnpin for Interactions
impl !UnwindSafe for Interactions
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