pub struct SlackAppManifestFeaturesBotUser {
pub display_name: String,
pub always_online: bool,
}Fields§
§display_name: String§always_online: boolImplementations§
Source§impl SlackAppManifestFeaturesBotUser
impl SlackAppManifestFeaturesBotUser
Sourcepub fn new(display_name: String, always_online: bool) -> Self
pub fn new(display_name: String, always_online: bool) -> Self
Creates a new SlackAppManifestFeaturesBotUser from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn display_name(&mut self, value: String) -> &mut Self
pub fn display_name(&mut self, value: String) -> &mut Self
Sets display_name to value.
Sourcepub fn with_display_name(self, value: String) -> Self
pub fn with_display_name(self, value: String) -> Self
Returns self with display_name set to value.
Sourcepub fn always_online(&mut self, value: bool) -> &mut Self
pub fn always_online(&mut self, value: bool) -> &mut Self
Sets always_online to value.
Sourcepub fn with_always_online(self, value: bool) -> Self
pub fn with_always_online(self, value: bool) -> Self
Returns self with always_online set to value.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SlackAppManifestFeaturesBotUser
impl<'de> Deserialize<'de> for SlackAppManifestFeaturesBotUser
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<SlackAppManifestFeaturesBotUserInit> for SlackAppManifestFeaturesBotUser
impl From<SlackAppManifestFeaturesBotUserInit> for SlackAppManifestFeaturesBotUser
Source§fn from(value: SlackAppManifestFeaturesBotUserInit) -> Self
fn from(value: SlackAppManifestFeaturesBotUserInit) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for SlackAppManifestFeaturesBotUser
Auto Trait Implementations§
impl Freeze for SlackAppManifestFeaturesBotUser
impl RefUnwindSafe for SlackAppManifestFeaturesBotUser
impl Send for SlackAppManifestFeaturesBotUser
impl Sync for SlackAppManifestFeaturesBotUser
impl Unpin for SlackAppManifestFeaturesBotUser
impl UnsafeUnpin for SlackAppManifestFeaturesBotUser
impl UnwindSafe for SlackAppManifestFeaturesBotUser
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