pub struct Calls {
pub client: Client,
}Fields§
§client: ClientImplementations§
Source§impl Calls
impl Calls
Sourcepub async fn add(&self) -> Result<Response<DndEndSchema>, ClientError>
pub async fn add(&self) -> Result<Response<DndEndSchema>, ClientError>
This function performs a POST to the /calls.add endpoint.
Registers a new Call.
FROM: https://api.slack.com/methods/calls.add
Parameters:
token: &str– Authentication token. Requires scope:calls:write.
Sourcepub async fn end(&self) -> Result<Response<DndEndSchema>, ClientError>
pub async fn end(&self) -> Result<Response<DndEndSchema>, ClientError>
This function performs a POST to the /calls.end endpoint.
Ends a Call.
FROM: https://api.slack.com/methods/calls.end
Parameters:
token: &str– Authentication token. Requires scope:calls:write.
Sourcepub async fn info(
&self,
id: &str,
) -> Result<Response<DndEndSchema>, ClientError>
pub async fn info( &self, id: &str, ) -> Result<Response<DndEndSchema>, ClientError>
This function performs a GET to the /calls.info endpoint.
Returns information about a Call.
FROM: https://api.slack.com/methods/calls.info
Parameters:
token: &str– Authentication token. Requires scope:calls:read.id: &str–idof the Call returned by thecalls.addmethod.
Sourcepub async fn update(&self) -> Result<Response<DndEndSchema>, ClientError>
pub async fn update(&self) -> Result<Response<DndEndSchema>, ClientError>
This function performs a POST to the /calls.update endpoint.
Updates information about a Call.
FROM: https://api.slack.com/methods/calls.update
Parameters:
token: &str– Authentication token. Requires scope:calls:write.
Auto Trait Implementations§
impl Freeze for Calls
impl !RefUnwindSafe for Calls
impl Send for Calls
impl Sync for Calls
impl Unpin for Calls
impl UnsafeUnpin for Calls
impl !UnwindSafe for Calls
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