pub struct WorkloadTrustBundle {
pub schema_version: u32,
pub trust_domain: String,
pub version: String,
pub sequence: u64,
pub issued_at: Option<Timestamp>,
pub expires_at: Option<Timestamp>,
pub issuer: String,
pub keys: Vec<WorkloadVerificationKey>,
pub subject_revocations: Vec<SubjectRevocation>,
pub credential_revocations: Vec<CredentialRevocation>,
}Expand description
WorkloadTrustBundle 只包含公共验证材料,可以独立缓存。 sequence 在每个 trust_domain 内单调递增,SDK 必须拒绝回滚;bundle 过期后 不得继续无限信任其中的 key。
Fields§
§schema_version: u32§trust_domain: String§version: String不透明且不可变的 bundle revision/hash。
sequence: u64§issued_at: Option<Timestamp>§expires_at: Option<Timestamp>§issuer: StringJWT iss claim 必须与该值精确一致,不能仅根据 trust_domain 自行拼接。
keys: Vec<WorkloadVerificationKey>§subject_revocations: Vec<SubjectRevocation>§credential_revocations: Vec<CredentialRevocation>Trait Implementations§
Source§impl Clone for WorkloadTrustBundle
impl Clone for WorkloadTrustBundle
Source§impl Debug for WorkloadTrustBundle
impl Debug for WorkloadTrustBundle
Source§impl Default for WorkloadTrustBundle
impl Default for WorkloadTrustBundle
Source§impl Message for WorkloadTrustBundle
impl Message for WorkloadTrustBundle
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 WorkloadTrustBundle
impl PartialEq for WorkloadTrustBundle
impl StructuralPartialEq for WorkloadTrustBundle
Auto Trait Implementations§
impl Freeze for WorkloadTrustBundle
impl RefUnwindSafe for WorkloadTrustBundle
impl Send for WorkloadTrustBundle
impl Sync for WorkloadTrustBundle
impl Unpin for WorkloadTrustBundle
impl UnsafeUnpin for WorkloadTrustBundle
impl UnwindSafe for WorkloadTrustBundle
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