pub struct SlackFileCreatedEvent {
pub user_id: SlackUserId,
pub file_id: SlackFileId,
pub file: SlackFile,
}Fields§
§user_id: SlackUserId§file_id: SlackFileId§file: SlackFileImplementations§
Source§impl SlackFileCreatedEvent
impl SlackFileCreatedEvent
Sourcepub fn new(user_id: SlackUserId, file_id: SlackFileId, file: SlackFile) -> Self
pub fn new(user_id: SlackUserId, file_id: SlackFileId, file: SlackFile) -> Self
Creates a new SlackFileCreatedEvent from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn user_id(&mut self, value: SlackUserId) -> &mut Self
pub fn user_id(&mut self, value: SlackUserId) -> &mut Self
Sets user_id to value.
Sourcepub fn with_user_id(self, value: SlackUserId) -> Self
pub fn with_user_id(self, value: SlackUserId) -> Self
Returns self with user_id set to value.
Sourcepub fn file_id(&mut self, value: SlackFileId) -> &mut Self
pub fn file_id(&mut self, value: SlackFileId) -> &mut Self
Sets file_id to value.
Sourcepub fn with_file_id(self, value: SlackFileId) -> Self
pub fn with_file_id(self, value: SlackFileId) -> Self
Returns self with file_id set to value.
Trait Implementations§
Source§impl Clone for SlackFileCreatedEvent
impl Clone for SlackFileCreatedEvent
Source§impl Debug for SlackFileCreatedEvent
impl Debug for SlackFileCreatedEvent
Source§impl<'de> Deserialize<'de> for SlackFileCreatedEvent
impl<'de> Deserialize<'de> for SlackFileCreatedEvent
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<SlackFileCreatedEventInit> for SlackFileCreatedEvent
impl From<SlackFileCreatedEventInit> for SlackFileCreatedEvent
Source§fn from(value: SlackFileCreatedEventInit) -> Self
fn from(value: SlackFileCreatedEventInit) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SlackFileCreatedEvent
impl PartialEq for SlackFileCreatedEvent
Source§impl Serialize for SlackFileCreatedEvent
impl Serialize for SlackFileCreatedEvent
impl StructuralPartialEq for SlackFileCreatedEvent
Auto Trait Implementations§
impl Freeze for SlackFileCreatedEvent
impl RefUnwindSafe for SlackFileCreatedEvent
impl Send for SlackFileCreatedEvent
impl Sync for SlackFileCreatedEvent
impl Unpin for SlackFileCreatedEvent
impl UnsafeUnpin for SlackFileCreatedEvent
impl UnwindSafe for SlackFileCreatedEvent
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