pub struct RunnerRequest {
pub instance_id: Option<u64>,
pub timestamp: Option<u64>,
pub extra: HashMap<String, Value>,
}Expand description
Client-provided runner context to send to whoami daemon.
These fields will be merged with server-injected identity fields
in the response’s runner object.
Fields§
§instance_id: Option<u64>Instance identifier for dynamic configuration routing.
timestamp: Option<u64>Timestamp for request tracking.
extra: HashMap<String, Value>Additional custom fields.
Implementations§
Source§impl RunnerRequest
impl RunnerRequest
Sourcepub fn with_instance_id(self, id: u64) -> Self
pub fn with_instance_id(self, id: u64) -> Self
Set the instance ID.
Sourcepub fn with_timestamp(self, ts: u64) -> Self
pub fn with_timestamp(self, ts: u64) -> Self
Set the timestamp.
Sourcepub fn with_current_timestamp(self) -> Self
pub fn with_current_timestamp(self) -> Self
Set the timestamp to the current Unix timestamp.
Trait Implementations§
Source§impl Clone for RunnerRequest
impl Clone for RunnerRequest
Source§fn clone(&self) -> RunnerRequest
fn clone(&self) -> RunnerRequest
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 RunnerRequest
impl Debug for RunnerRequest
Source§impl Default for RunnerRequest
impl Default for RunnerRequest
Source§fn default() -> RunnerRequest
fn default() -> RunnerRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RunnerRequest
impl<'de> Deserialize<'de> for RunnerRequest
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
Source§impl PartialEq for RunnerRequest
impl PartialEq for RunnerRequest
Source§impl Serialize for RunnerRequest
impl Serialize for RunnerRequest
impl Eq for RunnerRequest
impl StructuralPartialEq for RunnerRequest
Auto Trait Implementations§
impl Freeze for RunnerRequest
impl RefUnwindSafe for RunnerRequest
impl Send for RunnerRequest
impl Sync for RunnerRequest
impl Unpin for RunnerRequest
impl UnwindSafe for RunnerRequest
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