Struct slack_web_api::SlackBlockContext
source · pub struct SlackBlockContext { /* private fields */ }Implementations§
source§impl SlackBlockContext
impl SlackBlockContext
pub fn new() -> SlackBlockContext
pub fn element<E: Into<SlackBlockContentFieldElement>>( self, element: E ) -> SlackBlockContext
source§impl SlackBlockContext
impl SlackBlockContext
pub fn new_text<S: Into<String>>(text: S) -> SlackBlockContext
Trait Implementations§
source§impl Clone for SlackBlockContext
impl Clone for SlackBlockContext
source§fn clone(&self) -> SlackBlockContext
fn clone(&self) -> SlackBlockContext
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 SlackBlockContext
impl Debug for SlackBlockContext
source§impl Default for SlackBlockContext
impl Default for SlackBlockContext
source§impl<'de> Deserialize<'de> for SlackBlockContext
impl<'de> Deserialize<'de> for SlackBlockContext
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<SlackBlockContext> for SlackBlock
impl From<SlackBlockContext> for SlackBlock
source§fn from(value: SlackBlockContext) -> Self
fn from(value: SlackBlockContext) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for SlackBlockContext
impl Send for SlackBlockContext
impl Sync for SlackBlockContext
impl Unpin for SlackBlockContext
impl UnwindSafe for SlackBlockContext
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