#[non_exhaustive]pub struct ViewsPublishRequest {
pub user_id: String,
pub view: View,
pub hash: Option<String>,
pub interactivity_pointer: Option<String>,
}Expand description
Arguments for the Slack Web API method views.publish: Publish a static view for a User.
Send it with SlackClient::views_publish.
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.user_id: Stringid of the user you want publish a view to.
view: ViewA view payload. This must be a JSON-encoded string.
hash: Option<String>A string that represents view state to protect against possible race conditions.
interactivity_pointer: Option<String>Implementations§
Trait Implementations§
Source§impl Clone for ViewsPublishRequest
impl Clone for ViewsPublishRequest
Source§impl Debug for ViewsPublishRequest
impl Debug for ViewsPublishRequest
Source§impl PartialEq for ViewsPublishRequest
impl PartialEq for ViewsPublishRequest
Source§impl Serialize for ViewsPublishRequest
impl Serialize for ViewsPublishRequest
Source§impl SlackApiMethod for ViewsPublishRequest
impl SlackApiMethod for ViewsPublishRequest
impl StructuralPartialEq for ViewsPublishRequest
Auto Trait Implementations§
impl Freeze for ViewsPublishRequest
impl RefUnwindSafe for ViewsPublishRequest
impl Send for ViewsPublishRequest
impl Sync for ViewsPublishRequest
impl Unpin for ViewsPublishRequest
impl UnsafeUnpin for ViewsPublishRequest
impl UnwindSafe for ViewsPublishRequest
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