Struct tinychain::txn::Request [−][src]
pub struct Request { /* fields omitted */ }
A Txn
’s authorization.
Implementations
impl Request
[src]
impl Request
[src]pub fn new(txn_id: TxnId, token: String, claims: Claims) -> Self
[src]
Construct a new Request
.
pub fn expires(&self) -> TCResult<NetworkTime>
[src]
pub fn scopes(&self) -> &Claims
[src]
Return this request’s authorizations.
pub fn token(&self) -> &str
[src]
Return this request’s JSON web token (cf. the rjwt
crate)
pub fn txn_id(&self) -> &TxnId
[src]
Auto Trait Implementations
impl RefUnwindSafe for Request
impl RefUnwindSafe for Request
impl UnwindSafe for Request
impl UnwindSafe for Request
Blanket Implementations
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<F, T> TryCastFrom<F> for T where
T: CastFrom<F>,
[src]
impl<F, T> TryCastFrom<F> for T where
T: CastFrom<F>,
[src]pub fn can_cast_from(&F) -> bool
[src]
pub fn opt_cast_from(f: F) -> Option<T>
[src]
pub fn try_cast_from<Err, OnErr>(value: T, on_err: OnErr) -> Result<Self, Err> where
OnErr: FnOnce(&T) -> Err,
[src]
OnErr: FnOnce(&T) -> Err,
impl<F, T> TryCastInto<T> for F where
T: TryCastFrom<F>,
[src]
impl<F, T> TryCastInto<T> for F where
T: TryCastFrom<F>,
[src]pub fn can_cast_into(&self) -> bool
[src]
pub fn opt_cast_into(self) -> Option<T>
[src]
pub fn try_cast_into<Err, OnErr>(self, on_err: OnErr) -> Result<T, Err> where
OnErr: FnOnce(&Self) -> Err,
[src]
OnErr: FnOnce(&Self) -> Err,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,