Struct slack_morphism::prelude::SlackHomeView
source · pub struct SlackHomeView {
pub blocks: Vec<SlackBlock>,
pub private_metadata: Option<String>,
pub callback_id: Option<SlackCallbackId>,
pub external_id: Option<String>,
}
Fields§
§blocks: Vec<SlackBlock>
§private_metadata: Option<String>
§callback_id: Option<SlackCallbackId>
§external_id: Option<String>
Implementations§
source§impl SlackHomeView
impl SlackHomeView
pub fn new(blocks: Vec<SlackBlock>) -> Self
pub fn blocks(&mut self, value: Vec<SlackBlock>) -> &mut Self
pub fn with_blocks(self, value: Vec<SlackBlock>) -> Self
pub fn private_metadata(&mut self, value: String) -> &mut Self
pub fn reset_private_metadata(&mut self) -> &mut Self
pub fn mopt_private_metadata(&mut self, value: Option<String>) -> &mut Self
pub fn with_private_metadata(self, value: String) -> Self
pub fn without_private_metadata(self) -> Self
pub fn opt_private_metadata(self, value: Option<String>) -> Self
pub fn callback_id(&mut self, value: SlackCallbackId) -> &mut Self
pub fn reset_callback_id(&mut self) -> &mut Self
pub fn mopt_callback_id(&mut self, value: Option<SlackCallbackId>) -> &mut Self
pub fn with_callback_id(self, value: SlackCallbackId) -> Self
pub fn without_callback_id(self) -> Self
pub fn opt_callback_id(self, value: Option<SlackCallbackId>) -> Self
pub fn external_id(&mut self, value: String) -> &mut Self
pub fn reset_external_id(&mut self) -> &mut Self
pub fn mopt_external_id(&mut self, value: Option<String>) -> &mut Self
pub fn with_external_id(self, value: String) -> Self
pub fn without_external_id(self) -> Self
pub fn opt_external_id(self, value: Option<String>) -> Self
Trait Implementations§
source§impl Clone for SlackHomeView
impl Clone for SlackHomeView
source§fn clone(&self) -> SlackHomeView
fn clone(&self) -> SlackHomeView
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 SlackHomeView
impl Debug for SlackHomeView
source§impl<'de> Deserialize<'de> for SlackHomeView
impl<'de> Deserialize<'de> for SlackHomeView
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<SlackHomeViewInit> for SlackHomeView
impl From<SlackHomeViewInit> for SlackHomeView
source§fn from(value: SlackHomeViewInit) -> Self
fn from(value: SlackHomeViewInit) -> Self
Converts to this type from the input type.
source§impl PartialEq for SlackHomeView
impl PartialEq for SlackHomeView
source§fn eq(&self, other: &SlackHomeView) -> bool
fn eq(&self, other: &SlackHomeView) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SlackHomeView
impl Serialize for SlackHomeView
impl StructuralPartialEq for SlackHomeView
Auto Trait Implementations§
impl RefUnwindSafe for SlackHomeView
impl Send for SlackHomeView
impl Sync for SlackHomeView
impl Unpin for SlackHomeView
impl UnwindSafe for SlackHomeView
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