pub struct ServiceCredential {
pub service_id: String,
pub service_name: String,
pub secret_key: String,
pub created_at: DateTime<Utc>,
pub permissions: Vec<String>,
}Expand description
Service credential for inter-service authentication 服务间认证的服务凭证
Contains service identification and permission information 包含服务标识和权限信息
Fields§
§service_id: StringUnique service identifier | 唯一服务标识符
service_name: StringHuman-readable service name | 可读的服务名称
secret_key: StringService authentication secret key | 服务认证密钥
created_at: DateTime<Utc>Service registration time | 服务注册时间
permissions: Vec<String>List of permissions this service has | 该服务拥有的权限列表
Trait Implementations§
Source§impl Clone for ServiceCredential
impl Clone for ServiceCredential
Source§fn clone(&self) -> ServiceCredential
fn clone(&self) -> ServiceCredential
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 ServiceCredential
impl Debug for ServiceCredential
Source§impl<'de> Deserialize<'de> for ServiceCredential
impl<'de> Deserialize<'de> for ServiceCredential
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 ServiceCredential
impl RefUnwindSafe for ServiceCredential
impl Send for ServiceCredential
impl Sync for ServiceCredential
impl Unpin for ServiceCredential
impl UnwindSafe for ServiceCredential
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