pub struct SlackStarRemovedEvent {
pub user: SlackUserId,
pub item: SlackStarsItem,
pub event_ts: SlackTs,
}Fields§
§user: SlackUserId§item: SlackStarsItem§event_ts: SlackTsImplementations§
Source§impl SlackStarRemovedEvent
impl SlackStarRemovedEvent
Sourcepub fn new(user: SlackUserId, item: SlackStarsItem, event_ts: SlackTs) -> Self
pub fn new(user: SlackUserId, item: SlackStarsItem, event_ts: SlackTs) -> Self
Creates a new SlackStarRemovedEvent from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn user(&mut self, value: SlackUserId) -> &mut Self
pub fn user(&mut self, value: SlackUserId) -> &mut Self
Sets user to value.
Sourcepub fn with_user(self, value: SlackUserId) -> Self
pub fn with_user(self, value: SlackUserId) -> Self
Returns self with user set to value.
Sourcepub fn item(&mut self, value: SlackStarsItem) -> &mut Self
pub fn item(&mut self, value: SlackStarsItem) -> &mut Self
Sets item to value.
Sourcepub fn with_item(self, value: SlackStarsItem) -> Self
pub fn with_item(self, value: SlackStarsItem) -> Self
Returns self with item set to value.
Sourcepub fn with_event_ts(self, value: SlackTs) -> Self
pub fn with_event_ts(self, value: SlackTs) -> Self
Returns self with event_ts set to value.
Trait Implementations§
Source§impl Clone for SlackStarRemovedEvent
impl Clone for SlackStarRemovedEvent
Source§impl Debug for SlackStarRemovedEvent
impl Debug for SlackStarRemovedEvent
Source§impl<'de> Deserialize<'de> for SlackStarRemovedEvent
impl<'de> Deserialize<'de> for SlackStarRemovedEvent
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<SlackStarRemovedEventInit> for SlackStarRemovedEvent
impl From<SlackStarRemovedEventInit> for SlackStarRemovedEvent
Source§fn from(value: SlackStarRemovedEventInit) -> Self
fn from(value: SlackStarRemovedEventInit) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SlackStarRemovedEvent
impl PartialEq for SlackStarRemovedEvent
Source§impl Serialize for SlackStarRemovedEvent
impl Serialize for SlackStarRemovedEvent
impl StructuralPartialEq for SlackStarRemovedEvent
Auto Trait Implementations§
impl Freeze for SlackStarRemovedEvent
impl RefUnwindSafe for SlackStarRemovedEvent
impl Send for SlackStarRemovedEvent
impl Sync for SlackStarRemovedEvent
impl Unpin for SlackStarRemovedEvent
impl UnsafeUnpin for SlackStarRemovedEvent
impl UnwindSafe for SlackStarRemovedEvent
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