pub struct StubTokenRequest {
pub target_identity: String,
pub resource: String,
pub operation: String,
pub prefix_attenuator_key: String,
pub duration: Option<u64>,
}Expand description
Request to mint a stub token that requires prefix attestation before use.
Stub tokens are minted by a realm identity on behalf of a target identity within their domain. The token requires a trusted third party (identified by the prefix_attenuator_key) to add a prefix restriction before the token can be used.
Fields§
§target_identity: StringThe identity who will use this token (must be in minter’s domain)
resource: StringThe resource the stub token grants access to
operation: StringThe operation allowed on the resource
prefix_attenuator_key: StringPublic key that will attest the prefix (format: “ed25519/…” or “secp256r1/…”)
duration: Option<u64>Optional token duration in seconds (defaults to minter’s configured duration)
Trait Implementations§
Source§impl Clone for StubTokenRequest
impl Clone for StubTokenRequest
Source§fn clone(&self) -> StubTokenRequest
fn clone(&self) -> StubTokenRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StubTokenRequest
impl Debug for StubTokenRequest
Source§impl<'de> Deserialize<'de> for StubTokenRequest
impl<'de> Deserialize<'de> for StubTokenRequest
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for StubTokenRequest
impl RefUnwindSafe for StubTokenRequest
impl Send for StubTokenRequest
impl Sync for StubTokenRequest
impl Unpin for StubTokenRequest
impl UnwindSafe for StubTokenRequest
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