Struct slack_morphism::api::SlackApiViewsPublishRequest
source · pub struct SlackApiViewsPublishRequest {
pub user_id: SlackUserId,
pub view: SlackView,
pub hash: Option<String>,
}
Fields§
§user_id: SlackUserId
§view: SlackView
§hash: Option<String>
Implementations§
source§impl SlackApiViewsPublishRequest
impl SlackApiViewsPublishRequest
pub fn new(user_id: SlackUserId, view: SlackView) -> Self
pub fn user_id(&mut self, value: SlackUserId) -> &mut Self
pub fn with_user_id(self, value: SlackUserId) -> Self
pub fn view(&mut self, value: SlackView) -> &mut Self
pub fn with_view(self, value: SlackView) -> Self
pub fn hash(&mut self, value: String) -> &mut Self
pub fn reset_hash(&mut self) -> &mut Self
pub fn mopt_hash(&mut self, value: Option<String>) -> &mut Self
pub fn with_hash(self, value: String) -> Self
pub fn without_hash(self) -> Self
pub fn opt_hash(self, value: Option<String>) -> Self
Trait Implementations§
source§impl Clone for SlackApiViewsPublishRequest
impl Clone for SlackApiViewsPublishRequest
source§fn clone(&self) -> SlackApiViewsPublishRequest
fn clone(&self) -> SlackApiViewsPublishRequest
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SlackApiViewsPublishRequest
impl Debug for SlackApiViewsPublishRequest
source§impl<'de> Deserialize<'de> for SlackApiViewsPublishRequest
impl<'de> Deserialize<'de> for SlackApiViewsPublishRequest
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<SlackApiViewsPublishRequestInit> for SlackApiViewsPublishRequest
impl From<SlackApiViewsPublishRequestInit> for SlackApiViewsPublishRequest
source§fn from(value: SlackApiViewsPublishRequestInit) -> Self
fn from(value: SlackApiViewsPublishRequestInit) -> Self
Converts to this type from the input type.
source§impl PartialEq for SlackApiViewsPublishRequest
impl PartialEq for SlackApiViewsPublishRequest
source§fn eq(&self, other: &SlackApiViewsPublishRequest) -> bool
fn eq(&self, other: &SlackApiViewsPublishRequest) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SlackApiViewsPublishRequest
Auto Trait Implementations§
impl RefUnwindSafe for SlackApiViewsPublishRequest
impl Send for SlackApiViewsPublishRequest
impl Sync for SlackApiViewsPublishRequest
impl Unpin for SlackApiViewsPublishRequest
impl UnwindSafe for SlackApiViewsPublishRequest
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