pub struct SlackAppContext {
pub entities: Option<Vec<SlackAppContextEntity>>,
}Fields§
§entities: Option<Vec<SlackAppContextEntity>>Implementations§
Source§impl SlackAppContext
impl SlackAppContext
pub fn new() -> Self
pub fn entities(&mut self, value: Vec<SlackAppContextEntity>) -> &mut Self
pub fn reset_entities(&mut self) -> &mut Self
pub fn mopt_entities( &mut self, value: Option<Vec<SlackAppContextEntity>>, ) -> &mut Self
pub fn with_entities(self, value: Vec<SlackAppContextEntity>) -> Self
pub fn without_entities(self) -> Self
pub fn opt_entities(self, value: Option<Vec<SlackAppContextEntity>>) -> Self
Trait Implementations§
Source§impl Clone for SlackAppContext
impl Clone for SlackAppContext
Source§fn clone(&self) -> SlackAppContext
fn clone(&self) -> SlackAppContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SlackAppContext
impl Debug for SlackAppContext
Source§impl<'de> Deserialize<'de> for SlackAppContext
impl<'de> Deserialize<'de> for SlackAppContext
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<SlackAppContextInit> for SlackAppContext
impl From<SlackAppContextInit> for SlackAppContext
Source§fn from(value: SlackAppContextInit) -> Self
fn from(value: SlackAppContextInit) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SlackAppContext
impl PartialEq for SlackAppContext
Source§impl Serialize for SlackAppContext
impl Serialize for SlackAppContext
impl StructuralPartialEq for SlackAppContext
Auto Trait Implementations§
impl Freeze for SlackAppContext
impl RefUnwindSafe for SlackAppContext
impl Send for SlackAppContext
impl Sync for SlackAppContext
impl Unpin for SlackAppContext
impl UnsafeUnpin for SlackAppContext
impl UnwindSafe for SlackAppContext
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