pub struct SlackAppManifestFeaturesShortcut {
pub name: String,
pub callback_id: SlackCallbackId,
pub description: String,
pub ty: SlackShortcutType,
}Fields§
§name: String§callback_id: SlackCallbackId§description: String§ty: SlackShortcutTypeImplementations§
Source§impl SlackAppManifestFeaturesShortcut
impl SlackAppManifestFeaturesShortcut
Sourcepub fn new(
name: String,
callback_id: SlackCallbackId,
description: String,
ty: SlackShortcutType,
) -> Self
pub fn new( name: String, callback_id: SlackCallbackId, description: String, ty: SlackShortcutType, ) -> Self
Creates a new SlackAppManifestFeaturesShortcut from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn callback_id(&mut self, value: SlackCallbackId) -> &mut Self
pub fn callback_id(&mut self, value: SlackCallbackId) -> &mut Self
Sets callback_id to value.
Sourcepub fn with_callback_id(self, value: SlackCallbackId) -> Self
pub fn with_callback_id(self, value: SlackCallbackId) -> Self
Returns self with callback_id set to value.
Sourcepub fn description(&mut self, value: String) -> &mut Self
pub fn description(&mut self, value: String) -> &mut Self
Sets description to value.
Sourcepub fn with_description(self, value: String) -> Self
pub fn with_description(self, value: String) -> Self
Returns self with description set to value.
Sourcepub fn ty(&mut self, value: SlackShortcutType) -> &mut Self
pub fn ty(&mut self, value: SlackShortcutType) -> &mut Self
Sets ty to value.
Sourcepub fn with_ty(self, value: SlackShortcutType) -> Self
pub fn with_ty(self, value: SlackShortcutType) -> Self
Returns self with ty set to value.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SlackAppManifestFeaturesShortcut
impl<'de> Deserialize<'de> for SlackAppManifestFeaturesShortcut
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<SlackAppManifestFeaturesShortcutInit> for SlackAppManifestFeaturesShortcut
impl From<SlackAppManifestFeaturesShortcutInit> for SlackAppManifestFeaturesShortcut
Source§fn from(value: SlackAppManifestFeaturesShortcutInit) -> Self
fn from(value: SlackAppManifestFeaturesShortcutInit) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for SlackAppManifestFeaturesShortcut
Auto Trait Implementations§
impl Freeze for SlackAppManifestFeaturesShortcut
impl RefUnwindSafe for SlackAppManifestFeaturesShortcut
impl Send for SlackAppManifestFeaturesShortcut
impl Sync for SlackAppManifestFeaturesShortcut
impl Unpin for SlackAppManifestFeaturesShortcut
impl UnsafeUnpin for SlackAppManifestFeaturesShortcut
impl UnwindSafe for SlackAppManifestFeaturesShortcut
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