pub struct SlackAppContext {
pub entities: Option<Vec<SlackAppContextEntity>>,
}Fields§
§entities: Option<Vec<SlackAppContextEntity>>Implementations§
Source§impl SlackAppContext
impl SlackAppContext
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new SlackAppContext from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn entities(&mut self, value: Vec<SlackAppContextEntity>) -> &mut Self
pub fn entities(&mut self, value: Vec<SlackAppContextEntity>) -> &mut Self
Sets entities to Some(value).
Sourcepub fn reset_entities(&mut self) -> &mut Self
pub fn reset_entities(&mut self) -> &mut Self
Sets entities to None.
Sourcepub fn mopt_entities(
&mut self,
value: Option<Vec<SlackAppContextEntity>>,
) -> &mut Self
pub fn mopt_entities( &mut self, value: Option<Vec<SlackAppContextEntity>>, ) -> &mut Self
Sets entities to the given Option.
Sourcepub fn with_entities(self, value: Vec<SlackAppContextEntity>) -> Self
pub fn with_entities(self, value: Vec<SlackAppContextEntity>) -> Self
Returns self with entities set to Some(value).
Sourcepub fn without_entities(self) -> Self
pub fn without_entities(self) -> Self
Returns self with entities set to None.
Sourcepub fn opt_entities(self, value: Option<Vec<SlackAppContextEntity>>) -> Self
pub fn opt_entities(self, value: Option<Vec<SlackAppContextEntity>>) -> Self
Returns self with entities set to the given Option.
Trait Implementations§
Source§impl Clone for SlackAppContext
impl Clone for SlackAppContext
Source§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