pub struct ViewsApi { /* private fields */ }Expand description
Views API client
Implementations§
Source§impl ViewsApi
impl ViewsApi
Sourcepub async fn open(
&self,
trigger_id: &str,
view: Value,
) -> Result<ViewOpenResponse>
pub async fn open( &self, trigger_id: &str, view: Value, ) -> Result<ViewOpenResponse>
Open a modal view
§Arguments
trigger_id- Trigger ID from an interaction payloadview- View object (Block Kit)
Sourcepub async fn push(
&self,
trigger_id: &str,
view: Value,
) -> Result<ViewPushResponse>
pub async fn push( &self, trigger_id: &str, view: Value, ) -> Result<ViewPushResponse>
Push a new view onto the modal stack
§Arguments
trigger_id- Trigger ID from an interaction payloadview- View object (Block Kit)
Auto Trait Implementations§
impl Freeze for ViewsApi
impl !RefUnwindSafe for ViewsApi
impl Send for ViewsApi
impl Sync for ViewsApi
impl Unpin for ViewsApi
impl !UnwindSafe for ViewsApi
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