pub struct Identity {
pub run_id: String,
pub instance: Option<String>,
pub uid: Option<String>,
pub namespace: Option<String>,
pub node: Option<String>,
}Expand description
The instance’s correlation identity. run_id is always present; the k8s
fields are populated from the downward-API env when injected, else None.
Fields§
§run_id: StringAGENTD_RUN_ID, or the run id minted at startup. Always present.
instance: Option<String>metadata.name via AGENTD_POD_NAME.
uid: Option<String>metadata.uid via AGENTD_POD_UID.
namespace: Option<String>metadata.namespace via AGENTD_POD_NAMESPACE.
node: Option<String>spec.nodeName via AGENTD_NODE_NAME.
Implementations§
Trait Implementations§
impl Eq for Identity
impl StructuralPartialEq for Identity
Auto Trait Implementations§
impl Freeze for Identity
impl RefUnwindSafe for Identity
impl Send for Identity
impl Sync for Identity
impl Unpin for Identity
impl UnsafeUnpin for Identity
impl UnwindSafe for Identity
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