pub struct RegisterPayload {
pub hostname: String,
pub os: String,
pub version: String,
pub session_token: String,
pub agents: Vec<RemoteAgentInfo>,
pub system_load: Option<f32>,
}Expand description
Payload for CLI registration with the backend.
Fields§
§hostname: StringClient hostname.
os: StringClient operating system.
version: StringCLI version string.
session_token: StringSession token for authentication.
agents: Vec<RemoteAgentInfo>Include agents in register so frontend gets them immediately
system_load: Option<f32>System load
Trait Implementations§
Source§impl Clone for RegisterPayload
impl Clone for RegisterPayload
Source§fn clone(&self) -> RegisterPayload
fn clone(&self) -> RegisterPayload
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 RegisterPayload
impl Debug for RegisterPayload
Source§impl<'de> Deserialize<'de> for RegisterPayload
impl<'de> Deserialize<'de> for RegisterPayload
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 RegisterPayload
impl RefUnwindSafe for RegisterPayload
impl Send for RegisterPayload
impl Sync for RegisterPayload
impl Unpin for RegisterPayload
impl UnsafeUnpin for RegisterPayload
impl UnwindSafe for RegisterPayload
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