pub struct Stars {
pub client: Client,
}Fields§
§client: ClientImplementations§
Source§impl Stars
impl Stars
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 /stars.add endpoint.
Adds a star to an item.
FROM: https://api.slack.com/methods/stars.add
Parameters:
token: &str– Authentication token. Requires scope:stars:write.
Sourcepub async fn list(
&self,
count: &str,
page: &str,
cursor: &str,
limit: i64,
) -> Result<Response<StarsListSchema>, ClientError>
pub async fn list( &self, count: &str, page: &str, cursor: &str, limit: i64, ) -> Result<Response<StarsListSchema>, ClientError>
This function performs a GET to the /stars.list endpoint.
Lists stars for a user.
FROM: https://api.slack.com/methods/stars.list
Parameters:
token: &str– Authentication token. Requires scope:stars:read.count: &strpage: &strcursor: &str– Parameter for pagination. Setcursorequal to thenext_cursorattribute returned by the previous request’sresponse_metadata. This parameter is optional, but pagination is mandatory: the default value simply fetches the first “page” of the collection. See pagination for more details.limit: i64– The maximum number of items to return. Fewer than the requested number of items may be returned, even if the end of the list hasn’t been reached.
Sourcepub async fn remove(&self) -> Result<Response<DndEndSchema>, ClientError>
pub async fn remove(&self) -> Result<Response<DndEndSchema>, ClientError>
This function performs a POST to the /stars.remove endpoint.
Removes a star from an item.
FROM: https://api.slack.com/methods/stars.remove
Parameters:
token: &str– Authentication token. Requires scope:stars:write.
Auto Trait Implementations§
impl Freeze for Stars
impl !RefUnwindSafe for Stars
impl Send for Stars
impl Sync for Stars
impl Unpin for Stars
impl !UnwindSafe for Stars
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