Struct slack_hook::SlackUserLink
source · pub struct SlackUserLink {
pub uid: String,
}
Expand description
Representation of a user id link sent in slack
Cannot do @UGUID|handle links using SlackLink in the future due to https://api.slack.com/changelog/2017-09-the-one-about-usernames
Fields
uid: String
User ID (U1231232123) style
Implementations
sourceimpl SlackUserLink
impl SlackUserLink
sourcepub fn new(uid: &str) -> SlackUserLink
pub fn new(uid: &str) -> SlackUserLink
Construct new SlackUserLink
with a string slice
Trait Implementations
sourceimpl Clone for SlackUserLink
impl Clone for SlackUserLink
sourcefn clone(&self) -> SlackUserLink
fn clone(&self) -> SlackUserLink
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SlackUserLink
impl Debug for SlackUserLink
sourceimpl Display for SlackUserLink
impl Display for SlackUserLink
sourceimpl PartialEq<SlackUserLink> for SlackUserLink
impl PartialEq<SlackUserLink> for SlackUserLink
sourcefn eq(&self, other: &SlackUserLink) -> bool
fn eq(&self, other: &SlackUserLink) -> bool
sourceimpl PartialOrd<SlackUserLink> for SlackUserLink
impl PartialOrd<SlackUserLink> for SlackUserLink
sourcefn partial_cmp(&self, other: &SlackUserLink) -> Option<Ordering>
fn partial_cmp(&self, other: &SlackUserLink) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresourceimpl Serialize for SlackUserLink
impl Serialize for SlackUserLink
impl StructuralPartialEq for SlackUserLink
Auto Trait Implementations
impl RefUnwindSafe for SlackUserLink
impl Send for SlackUserLink
impl Sync for SlackUserLink
impl Unpin for SlackUserLink
impl UnwindSafe for SlackUserLink
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more