pub struct AgentCertificateStatus {
pub not_after: String,
pub remaining_seconds: i64,
pub state: String,
pub last_renewal: Option<AgentCredentialRenewal>,
}Expand description
agent 本地客户端证书状态(上报给网关,供页面/告警展示)。
Fields§
§not_after: String证书到期时刻(RFC3339)。
remaining_seconds: i64距到期的剩余秒数(已过期为负)。
state: Stringvalid / renew_due / expired。
last_renewal: Option<AgentCredentialRenewal>agent 本机最近一次续签判定的结果(§5.5)。
None = 老版本 agentd 不发(或本机台账一时读不到)—— 网关落库时保留上一次的值
(与本报告里 local_work / uplink_state 同一口径)。
Trait Implementations§
Source§impl Clone for AgentCertificateStatus
impl Clone for AgentCertificateStatus
Source§impl Debug for AgentCertificateStatus
impl Debug for AgentCertificateStatus
Source§impl<'de> Deserialize<'de> for AgentCertificateStatus
impl<'de> Deserialize<'de> for AgentCertificateStatus
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
impl Eq for AgentCertificateStatus
Source§impl PartialEq for AgentCertificateStatus
impl PartialEq for AgentCertificateStatus
Source§impl Serialize for AgentCertificateStatus
impl Serialize for AgentCertificateStatus
impl StructuralPartialEq for AgentCertificateStatus
Auto Trait Implementations§
impl Freeze for AgentCertificateStatus
impl RefUnwindSafe for AgentCertificateStatus
impl Send for AgentCertificateStatus
impl Sync for AgentCertificateStatus
impl Unpin for AgentCertificateStatus
impl UnsafeUnpin for AgentCertificateStatus
impl UnwindSafe for AgentCertificateStatus
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