pub struct ReissueCredentialRequest {
pub actr_id: ActrId,
pub registration: RegisterRequest,
pub renewal_proof: Option<Bytes>,
}Expand description
Re-issue credentials for an existing actor when its renewal token can no longer be used. The nested registration request re-authenticates the workload (manufacturer proof for packages, realm authorization for linked workloads), while actr_id identifies the stable runtime identity that must be preserved.
Fields§
§actr_id: ActrId§registration: RegisterRequest§renewal_proof: Option<Bytes>Proof that the caller owns exactly this actr_id: the raw renewal token most recently issued to that actor (possibly expired). AIS matches its hash against the issuer-recorded token bindings for actr_id and rejects the reissue when no binding matches, so a workload cannot mint credentials for another same-realm/type actor or an arbitrary serial.
Implementations§
Source§impl ReissueCredentialRequest
impl ReissueCredentialRequest
Sourcepub fn renewal_proof(&self) -> &[u8] ⓘ
pub fn renewal_proof(&self) -> &[u8] ⓘ
Returns the value of renewal_proof, or the default value if renewal_proof is unset.
Trait Implementations§
Source§impl Clone for ReissueCredentialRequest
impl Clone for ReissueCredentialRequest
Source§fn clone(&self) -> ReissueCredentialRequest
fn clone(&self) -> ReissueCredentialRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ReissueCredentialRequest
impl Debug for ReissueCredentialRequest
Source§impl Default for ReissueCredentialRequest
impl Default for ReissueCredentialRequest
Source§impl Message for ReissueCredentialRequest
impl Message for ReissueCredentialRequest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for ReissueCredentialRequest
impl PartialEq for ReissueCredentialRequest
impl StructuralPartialEq for ReissueCredentialRequest
Auto Trait Implementations§
impl !Freeze for ReissueCredentialRequest
impl RefUnwindSafe for ReissueCredentialRequest
impl Send for ReissueCredentialRequest
impl Sync for ReissueCredentialRequest
impl Unpin for ReissueCredentialRequest
impl UnsafeUnpin for ReissueCredentialRequest
impl UnwindSafe for ReissueCredentialRequest
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