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: Stringsource: StringImplementations
sourceimpl 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
sourceimpl Clone for SlackFileBlock
impl Clone for SlackFileBlock
sourcefn clone(&self) -> SlackFileBlock
fn clone(&self) -> SlackFileBlock
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for SlackFileBlock
impl Debug for SlackFileBlock
sourceimpl<'de> Deserialize<'de> for SlackFileBlock
impl<'de> Deserialize<'de> for SlackFileBlock
sourcefn 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
sourceimpl From<SlackFileBlock> for SlackBlock
impl From<SlackFileBlock> for SlackBlock
sourcefn from(block: SlackFileBlock) -> Self
fn from(block: SlackFileBlock) -> Self
Converts to this type from the input type.
sourceimpl From<SlackFileBlockInit> for SlackFileBlock
impl From<SlackFileBlockInit> for SlackFileBlock
sourcefn from(value: SlackFileBlockInit) -> Self
fn from(value: SlackFileBlockInit) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<SlackFileBlock> for SlackFileBlock
impl PartialEq<SlackFileBlock> for SlackFileBlock
sourcefn eq(&self, other: &SlackFileBlock) -> bool
fn eq(&self, other: &SlackFileBlock) -> bool
sourceimpl Serialize for SlackFileBlock
impl Serialize for SlackFileBlock
impl StructuralPartialEq for SlackFileBlock
Auto Trait Implementations
impl RefUnwindSafe for SlackFileBlock
impl Send for SlackFileBlock
impl Sync for SlackFileBlock
impl Unpin for SlackFileBlock
impl UnwindSafe for SlackFileBlock
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more