pub struct TestToken {
pub id: String,
pub secret_hash: String,
pub project: String,
pub source_prefix: String,
}Expand description
Authentication and token configuration for embedded servers. Pre-hashed token entry used by embedded tests and local harnesses.
Fields§
§id: StringToken identifier used in logs and rate-limit keys.
secret_hash: StringArgon2 encoded password hash for the bearer token.
project: StringProject this token may write.
source_prefix: StringCanonical source prefix this token may write.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TestToken
impl RefUnwindSafe for TestToken
impl Send for TestToken
impl Sync for TestToken
impl Unpin for TestToken
impl UnsafeUnpin for TestToken
impl UnwindSafe for TestToken
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request