pub struct Dialog {
pub client: Client,
}Fields§
§client: ClientImplementations§
Source§impl Dialog
impl Dialog
Sourcepub async fn open(
&self,
dialog: &str,
trigger_id: &str,
) -> Result<Response<DndEndSchema>, ClientError>
pub async fn open( &self, dialog: &str, trigger_id: &str, ) -> Result<Response<DndEndSchema>, ClientError>
This function performs a GET to the /dialog.open endpoint.
Open a dialog with a user
FROM: https://api.slack.com/methods/dialog.open
Parameters:
token: &str– Authentication token. Requires scope:none.dialog: &str– The dialog definition. This must be a JSON-encoded string.trigger_id: &str– Exchange a trigger to post to the user.
Auto Trait Implementations§
impl Freeze for Dialog
impl !RefUnwindSafe for Dialog
impl Send for Dialog
impl Sync for Dialog
impl Unpin for Dialog
impl !UnwindSafe for Dialog
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