pub struct Runner {
pub identity: String,
pub hostname: String,
pub process: String,
pub pid: u32,
pub uid: u32,
pub gid: u32,
pub instance_id: Option<u64>,
pub timestamp: Option<u64>,
pub extra: HashMap<String, Value>,
}Expand description
Runner information containing both client-provided context and server-injected identity fields.
This object is designed to be passed directly to a config server, which can use it to route and customize configuration based on both the verified identity and client-provided context.
Fields§
§identity: StringApplication-level identity name (injected by whoami).
hostname: StringHostname where the process is running (injected by whoami).
process: StringProcess name (injected by whoami).
pid: u32Process ID (injected by whoami).
uid: u32User ID (injected by whoami).
gid: u32Group ID (injected by whoami).
instance_id: Option<u64>Client-provided instance identifier (optional).
timestamp: Option<u64>Client-provided timestamp (optional).
extra: HashMap<String, Value>Additional client-provided fields.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Runner
impl<'de> Deserialize<'de> for Runner
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 Runner
impl StructuralPartialEq for Runner
Auto Trait Implementations§
impl Freeze for Runner
impl RefUnwindSafe for Runner
impl Send for Runner
impl Sync for Runner
impl Unpin for Runner
impl UnwindSafe for Runner
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