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
Sourcepub fn new(external_id: String) -> Self
pub fn new(external_id: String) -> Self
Creates a new SlackFileBlock from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn block_id(&mut self, value: SlackBlockId) -> &mut Self
pub fn block_id(&mut self, value: SlackBlockId) -> &mut Self
Sets block_id to Some(value).
Sourcepub fn reset_block_id(&mut self) -> &mut Self
pub fn reset_block_id(&mut self) -> &mut Self
Sets block_id to None.
Sourcepub fn mopt_block_id(&mut self, value: Option<SlackBlockId>) -> &mut Self
pub fn mopt_block_id(&mut self, value: Option<SlackBlockId>) -> &mut Self
Sets block_id to the given Option.
Sourcepub fn with_block_id(self, value: SlackBlockId) -> Self
pub fn with_block_id(self, value: SlackBlockId) -> Self
Returns self with block_id set to Some(value).
Sourcepub fn without_block_id(self) -> Self
pub fn without_block_id(self) -> Self
Returns self with block_id set to None.
Sourcepub fn opt_block_id(self, value: Option<SlackBlockId>) -> Self
pub fn opt_block_id(self, value: Option<SlackBlockId>) -> Self
Returns self with block_id set to the given Option.
Sourcepub fn external_id(&mut self, value: String) -> &mut Self
pub fn external_id(&mut self, value: String) -> &mut Self
Sets external_id to value.
Sourcepub fn with_external_id(self, value: String) -> Self
pub fn with_external_id(self, value: String) -> Self
Returns self with external_id set to value.
Sourcepub fn with_source(self, value: String) -> Self
pub fn with_source(self, value: String) -> Self
Returns self with source set to value.
Trait Implementations§
Source§impl Clone for SlackFileBlock
impl Clone for SlackFileBlock
Source§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 for SlackFileBlock
impl PartialEq for SlackFileBlock
Source§impl Serialize for SlackFileBlock
impl Serialize for SlackFileBlock
impl StructuralPartialEq for SlackFileBlock
Auto Trait Implementations§
impl Freeze for SlackFileBlock
impl RefUnwindSafe for SlackFileBlock
impl Send for SlackFileBlock
impl Sync for SlackFileBlock
impl Unpin for SlackFileBlock
impl UnsafeUnpin for SlackFileBlock
impl UnwindSafe for SlackFileBlock
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