struct OwnIdentity<'a> {
id: &'a str,
name: Option<String>,
asked: bool,
}Expand description
The workspace’s own identity, read from auth.test at most once a sweep.
Fields§
§id: &'a strThe token’s own user id, the one auth.test reports.
name: Option<String>The name that id goes by; asked separates “not asked” from
“asked, no name”.
asked: boolImplementations§
Source§impl OwnIdentity<'_>
impl OwnIdentity<'_>
Sourceasync fn resolve_name(
&mut self,
api: &dyn SlackApi,
workspace: &str,
) -> Result<Option<&str>, SlackError>
async fn resolve_name( &mut self, api: &dyn SlackApi, workspace: &str, ) -> Result<Option<&str>, SlackError>
The name the token’s own user goes by, asked of auth.test once a
sweep. A failed call reads as no name; a throttle belongs to the
sweep.
Auto Trait Implementations§
impl<'a> Freeze for OwnIdentity<'a>
impl<'a> RefUnwindSafe for OwnIdentity<'a>
impl<'a> Send for OwnIdentity<'a>
impl<'a> Sync for OwnIdentity<'a>
impl<'a> Unpin for OwnIdentity<'a>
impl<'a> UnsafeUnpin for OwnIdentity<'a>
impl<'a> UnwindSafe for OwnIdentity<'a>
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more