Struct slack_morphism::prelude::SlackSectionBlock [−][src]
Fields
block_id: Option<SlackBlockId>text: Option<SlackBlockText>fields: Option<Vec<SlackBlockText, Global>>accessory: Option<SlackSectionBlockElement>Implementations
impl SlackSectionBlock[src]
pub fn new() -> SlackSectionBlock[src]
pub fn block_id(&mut self, value: SlackBlockId) -> &mut SlackSectionBlock[src]
pub fn reset_block_id(&mut self) -> &mut SlackSectionBlock[src]
pub fn mopt_block_id(
&mut self,
value: Option<SlackBlockId>
) -> &mut SlackSectionBlock[src]
&mut self,
value: Option<SlackBlockId>
) -> &mut SlackSectionBlock
pub fn with_block_id(self, value: SlackBlockId) -> SlackSectionBlock[src]
pub fn without_block_id(self) -> SlackSectionBlock[src]
pub fn opt_block_id(self, value: Option<SlackBlockId>) -> SlackSectionBlock[src]
pub fn text(&mut self, value: SlackBlockText) -> &mut SlackSectionBlock[src]
pub fn reset_text(&mut self) -> &mut SlackSectionBlock[src]
pub fn mopt_text(
&mut self,
value: Option<SlackBlockText>
) -> &mut SlackSectionBlock[src]
&mut self,
value: Option<SlackBlockText>
) -> &mut SlackSectionBlock
pub fn with_text(self, value: SlackBlockText) -> SlackSectionBlock[src]
pub fn without_text(self) -> SlackSectionBlock[src]
pub fn opt_text(self, value: Option<SlackBlockText>) -> SlackSectionBlock[src]
pub fn fields(
&mut self,
value: Vec<SlackBlockText, Global>
) -> &mut SlackSectionBlock[src]
&mut self,
value: Vec<SlackBlockText, Global>
) -> &mut SlackSectionBlock
pub fn reset_fields(&mut self) -> &mut SlackSectionBlock[src]
pub fn mopt_fields(
&mut self,
value: Option<Vec<SlackBlockText, Global>>
) -> &mut SlackSectionBlock[src]
&mut self,
value: Option<Vec<SlackBlockText, Global>>
) -> &mut SlackSectionBlock
pub fn with_fields(
self,
value: Vec<SlackBlockText, Global>
) -> SlackSectionBlock[src]
self,
value: Vec<SlackBlockText, Global>
) -> SlackSectionBlock
pub fn without_fields(self) -> SlackSectionBlock[src]
pub fn opt_fields(
self,
value: Option<Vec<SlackBlockText, Global>>
) -> SlackSectionBlock[src]
self,
value: Option<Vec<SlackBlockText, Global>>
) -> SlackSectionBlock
pub fn accessory(
&mut self,
value: SlackSectionBlockElement
) -> &mut SlackSectionBlock[src]
&mut self,
value: SlackSectionBlockElement
) -> &mut SlackSectionBlock
pub fn reset_accessory(&mut self) -> &mut SlackSectionBlock[src]
pub fn mopt_accessory(
&mut self,
value: Option<SlackSectionBlockElement>
) -> &mut SlackSectionBlock[src]
&mut self,
value: Option<SlackSectionBlockElement>
) -> &mut SlackSectionBlock
pub fn with_accessory(
self,
value: SlackSectionBlockElement
) -> SlackSectionBlock[src]
self,
value: SlackSectionBlockElement
) -> SlackSectionBlock
pub fn without_accessory(self) -> SlackSectionBlock[src]
pub fn opt_accessory(
self,
value: Option<SlackSectionBlockElement>
) -> SlackSectionBlock[src]
self,
value: Option<SlackSectionBlockElement>
) -> SlackSectionBlock
Trait Implementations
impl Clone for SlackSectionBlock[src]
pub fn clone(&self) -> SlackSectionBlock[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for SlackSectionBlock[src]
impl<'de> Deserialize<'de> for SlackSectionBlock[src]
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<SlackSectionBlock, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>, [src]
__deserializer: __D
) -> Result<SlackSectionBlock, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl From<SlackSectionBlock> for SlackBlock[src]
pub fn from(block: SlackSectionBlock) -> SlackBlock[src]
impl From<SlackSectionBlockInit> for SlackSectionBlock[src]
pub fn from(value: SlackSectionBlockInit) -> SlackSectionBlock[src]
impl PartialEq<SlackSectionBlock> for SlackSectionBlock[src]
pub fn eq(&self, other: &SlackSectionBlock) -> bool[src]
pub fn ne(&self, other: &SlackSectionBlock) -> bool[src]
impl Serialize for SlackSectionBlock[src]
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer, [src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl StructuralPartialEq for SlackSectionBlock[src]
Auto Trait Implementations
impl RefUnwindSafe for SlackSectionBlock
impl Send for SlackSectionBlock
impl Sync for SlackSectionBlock
impl Unpin for SlackSectionBlock
impl UnwindSafe for SlackSectionBlock
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,