pub struct ServiceIdentityDescriptor {
pub subject: String,
pub namespace: String,
pub service: String,
pub revision: String,
pub credential_mode: String,
pub trust_bundle_version: String,
pub trust_domain: String,
pub audience: String,
pub credential_endpoint: String,
pub identity_protocol_version: u32,
pub credential_formats: Vec<i32>,
}Expand description
服务稳定的数据面身份描述。本对象不是凭证,也不包含任何 secret。 control-plane 必须根据 gRPC metadata 中已验证的 service token 推导该对象, DiscoverRequest.service 只能用于 namespace/service 一致性校验。
Fields§
§subject: StringSDK 内部使用的稳定主体标识,不作为用户可编辑配置暴露。
namespace: String§service: String§revision: String§credential_mode: String§trust_bundle_version: String§trust_domain: String§audience: String§credential_endpoint: String独立 workload credential RPC 的服务端点;凭证本身不得进入 Discover。
identity_protocol_version: u32typed 协议版本和格式能力;旧 string 字段继续保留用于兼容旧 SDK。
credential_formats: Vec<i32>Implementations§
Source§impl ServiceIdentityDescriptor
impl ServiceIdentityDescriptor
Sourcepub fn credential_formats(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(i32) -> Option<WorkloadCredentialFormat>> ⓘ
pub fn credential_formats( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(i32) -> Option<WorkloadCredentialFormat>> ⓘ
Returns an iterator which yields the valid enum values contained in credential_formats.
Sourcepub fn push_credential_formats(&mut self, value: WorkloadCredentialFormat)
pub fn push_credential_formats(&mut self, value: WorkloadCredentialFormat)
Appends the provided enum value to credential_formats.
Trait Implementations§
Source§impl Clone for ServiceIdentityDescriptor
impl Clone for ServiceIdentityDescriptor
Source§impl Debug for ServiceIdentityDescriptor
impl Debug for ServiceIdentityDescriptor
Source§impl Default for ServiceIdentityDescriptor
impl Default for ServiceIdentityDescriptor
impl Eq for ServiceIdentityDescriptor
Source§impl Hash for ServiceIdentityDescriptor
impl Hash for ServiceIdentityDescriptor
Source§impl Message for ServiceIdentityDescriptor
impl Message for ServiceIdentityDescriptor
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.impl StructuralPartialEq for ServiceIdentityDescriptor
Auto Trait Implementations§
impl Freeze for ServiceIdentityDescriptor
impl RefUnwindSafe for ServiceIdentityDescriptor
impl Send for ServiceIdentityDescriptor
impl Sync for ServiceIdentityDescriptor
impl Unpin for ServiceIdentityDescriptor
impl UnsafeUnpin for ServiceIdentityDescriptor
impl UnwindSafe for ServiceIdentityDescriptor
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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