Struct slack_morphism::prelude::blocks::SlackFileBlock
source · pub struct SlackFileBlock {
pub block_id: Option<SlackBlockId>,
pub external_id: String,
pub source: String,
}Fields§
§block_id: Option<SlackBlockId>§external_id: String§source: StringImplementations§
source§impl SlackFileBlock
impl SlackFileBlock
pub fn new(external_id: String) -> Self
pub fn block_id(&mut self, value: SlackBlockId) -> &mut Self
pub fn reset_block_id(&mut self) -> &mut Self
pub fn mopt_block_id(&mut self, value: Option<SlackBlockId>) -> &mut Self
pub fn with_block_id(self, value: SlackBlockId) -> Self
pub fn without_block_id(self) -> Self
pub fn opt_block_id(self, value: Option<SlackBlockId>) -> Self
pub fn external_id(&mut self, value: String) -> &mut Self
pub fn with_external_id(self, value: String) -> Self
pub fn source(&mut self, value: String) -> &mut Self
pub fn with_source(self, value: String) -> Self
Trait Implementations§
source§impl Clone for SlackFileBlock
impl Clone for SlackFileBlock
source§fn clone(&self) -> SlackFileBlock
fn clone(&self) -> SlackFileBlock
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 SlackFileBlock
impl Debug for SlackFileBlock
source§impl<'de> Deserialize<'de> for SlackFileBlock
impl<'de> Deserialize<'de> for SlackFileBlock
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<SlackFileBlock> for SlackBlock
impl From<SlackFileBlock> for SlackBlock
source§fn from(block: SlackFileBlock) -> Self
fn from(block: SlackFileBlock) -> Self
Converts to this type from the input type.
source§impl From<SlackFileBlockInit> for SlackFileBlock
impl From<SlackFileBlockInit> for SlackFileBlock
source§fn from(value: SlackFileBlockInit) -> Self
fn from(value: SlackFileBlockInit) -> Self
Converts to this type from the input type.
source§impl PartialEq<SlackFileBlock> for SlackFileBlock
impl PartialEq<SlackFileBlock> for SlackFileBlock
source§fn eq(&self, other: &SlackFileBlock) -> bool
fn eq(&self, other: &SlackFileBlock) -> bool
This method tests for
self and other values to be equal, and is used
by ==.