pub struct UcanGrantRefresh {
pub grant_cbor_b64: String,
pub grant_cid: String,
pub requested_scope: Option<String>,
pub audience: Option<String>,
}Expand description
Re-evaluation context persisted alongside a UCAN-grant refresh token so the
refresh path can re-present the grant to evaluate_refresh (MAC #547 / B1
#673). Carrying the grant itself (not just an id) lets the gate chain
re-check the ceiling against current state on every refresh.
Fields§
§grant_cbor_b64: Stringbase64url(CBOR) of the UCAN grant, re-presented to evaluate_refresh
verbatim (the same encoding the client sent as subject_token).
grant_cid: StringBLAKE3 content id (hex) of the CBOR grant. Binds this refresh entry to exactly the grant it was minted from and is checked on every refresh so a corrupted/substituted stored blob fails closed.
requested_scope: Option<String>The RFC 8693 requested scope (the S3 action:resource:identifier
triple) used to rebuild the GrantRequest on refresh.
audience: Option<String>The RFC 8707 audience resource indicator, if any.
Trait Implementations§
Source§impl Clone for UcanGrantRefresh
impl Clone for UcanGrantRefresh
Source§fn clone(&self) -> UcanGrantRefresh
fn clone(&self) -> UcanGrantRefresh
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 UcanGrantRefresh
impl Debug for UcanGrantRefresh
Source§impl<'de> Deserialize<'de> for UcanGrantRefresh
impl<'de> Deserialize<'de> for UcanGrantRefresh
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for UcanGrantRefresh
impl RefUnwindSafe for UcanGrantRefresh
impl Send for UcanGrantRefresh
impl Sync for UcanGrantRefresh
impl Unpin for UcanGrantRefresh
impl UnsafeUnpin for UcanGrantRefresh
impl UnwindSafe for UcanGrantRefresh
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 moreSource§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>
T in a tonic::Request