#[non_exhaustive]pub struct StarsAddRequest {
pub channel: Option<String>,
pub file: Option<String>,
pub file_comment: Option<String>,
pub timestamp: Option<String>,
}Expand description
Arguments for the Slack Web API method stars.add: Save an item for later. Formerly known as adding a star.
Send it with SlackClient::stars_add.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.channel: Option<String>Channel to add star to, or channel where the message to add star to was posted (used with timestamp).
file: Option<String>File to add star to.
file_comment: Option<String>File comment to add star to.
timestamp: Option<String>Timestamp of the message to add star to.
Implementations§
Trait Implementations§
Source§impl Clone for StarsAddRequest
impl Clone for StarsAddRequest
Source§impl Debug for StarsAddRequest
impl Debug for StarsAddRequest
Source§impl Default for StarsAddRequest
impl Default for StarsAddRequest
Source§impl PartialEq for StarsAddRequest
impl PartialEq for StarsAddRequest
Source§impl Serialize for StarsAddRequest
impl Serialize for StarsAddRequest
Source§impl SlackApiMethod for StarsAddRequest
impl SlackApiMethod for StarsAddRequest
impl StructuralPartialEq for StarsAddRequest
Auto Trait Implementations§
impl Freeze for StarsAddRequest
impl RefUnwindSafe for StarsAddRequest
impl Send for StarsAddRequest
impl Sync for StarsAddRequest
impl Unpin for StarsAddRequest
impl UnsafeUnpin for StarsAddRequest
impl UnwindSafe for StarsAddRequest
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