pub struct SlackTokenRef {
pub bot_token_key: String,
pub app_token_key: String,
}Expand description
A persisted, serializable reference to a channel’s tokens in the OS keychain
(MC-9). It carries ONLY the keychain key NAMES the bearer values live under,
never the xoxb-/xapp- strings themselves — so messaging.json holds a
token reference, not a token. Its presence in a ChannelConfig doubles
as the “tokens have been provisioned” marker (the adapter + UI can tell that
credentials exist without reading them).
This is the on-disk twin of the in-memory
crate::slack_adapter::SlackTokenRefs the provisioning write path returns;
they hold the same key names but this one is Serialize/Deserialize for
the durable config.
Fields§
§bot_token_key: StringKeychain key NAME the bot token (xoxb-) is stored under. Never the
bearer value.
app_token_key: StringKeychain key NAME the app-level token (xapp-) is stored under. Never
the bearer value.
Trait Implementations§
Source§impl Clone for SlackTokenRef
impl Clone for SlackTokenRef
Source§fn clone(&self) -> SlackTokenRef
fn clone(&self) -> SlackTokenRef
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SlackTokenRef
impl Debug for SlackTokenRef
Source§impl Default for SlackTokenRef
impl Default for SlackTokenRef
Source§fn default() -> SlackTokenRef
fn default() -> SlackTokenRef
Source§impl<'de> Deserialize<'de> for SlackTokenRef
impl<'de> Deserialize<'de> for SlackTokenRef
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SlackTokenRef, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SlackTokenRef, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for SlackTokenRef
Source§impl PartialEq for SlackTokenRef
impl PartialEq for SlackTokenRef
Source§impl Serialize for SlackTokenRef
impl Serialize for SlackTokenRef
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for SlackTokenRef
Auto Trait Implementations§
impl Freeze for SlackTokenRef
impl RefUnwindSafe for SlackTokenRef
impl Send for SlackTokenRef
impl Sync for SlackTokenRef
impl Unpin for SlackTokenRef
impl UnsafeUnpin for SlackTokenRef
impl UnwindSafe for SlackTokenRef
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> 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> ⓘ
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> ⓘ
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