#[non_exhaustive]pub struct BookmarksAddRequest {
pub title: String,
pub type: String,
pub channel_id: Option<String>,
pub link: Option<String>,
pub emoji: Option<String>,
pub entity_id: Option<String>,
pub access_level: Option<String>,
pub parent_id: Option<String>,
}Expand description
Arguments for the Slack Web API method bookmarks.add: Add bookmark to a channel.
Send it with SlackClient::bookmarks_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.title: StringTitle for the bookmark.
type: StringType of the bookmark i.e link.
channel_id: Option<String>Channel to add bookmark in. Required for public channels.
link: Option<String>Link to bookmark.
emoji: Option<String>Emoji tag to apply to the link.
entity_id: Option<String>ID of the entity being bookmarked. Only applies to message and file types.
access_level: Option<String>The level that we are setting the file’s permission to (read or write)
parent_id: Option<String>Id of this bookmark’s parent
Implementations§
Source§impl BookmarksAddRequest
impl BookmarksAddRequest
pub fn new(title: impl Into<String>, type: impl Into<String>) -> Self
pub fn channel_id(self, channel_id: impl Into<String>) -> Self
pub fn link(self, link: impl Into<String>) -> Self
pub fn emoji(self, emoji: impl Into<String>) -> Self
pub fn entity_id(self, entity_id: impl Into<String>) -> Self
pub fn access_level(self, access_level: impl Into<String>) -> Self
pub fn parent_id(self, parent_id: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for BookmarksAddRequest
impl Clone for BookmarksAddRequest
Source§impl Debug for BookmarksAddRequest
impl Debug for BookmarksAddRequest
Source§impl PartialEq for BookmarksAddRequest
impl PartialEq for BookmarksAddRequest
Source§impl Serialize for BookmarksAddRequest
impl Serialize for BookmarksAddRequest
Source§impl SlackApiMethod for BookmarksAddRequest
impl SlackApiMethod for BookmarksAddRequest
impl StructuralPartialEq for BookmarksAddRequest
Auto Trait Implementations§
impl Freeze for BookmarksAddRequest
impl RefUnwindSafe for BookmarksAddRequest
impl Send for BookmarksAddRequest
impl Sync for BookmarksAddRequest
impl Unpin for BookmarksAddRequest
impl UnsafeUnpin for BookmarksAddRequest
impl UnwindSafe for BookmarksAddRequest
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