pub struct AgentInfo {Show 14 fields
pub agent_id: String,
pub token: String,
pub hostname: String,
pub version: String,
pub gui: bool,
pub platform: String,
pub hwid: String,
pub server_host_and_port: String,
pub email: String,
pub password: String,
pub secondary: bool,
pub transient: bool,
pub is_service: bool,
pub branch: String,
}Fields§
§agent_id: StringUnique identifier for the agent generated and stored in config Only used for docker containers, for other system hwid used
token: StringAuthentication token for the agent
hostname: StringHostname of the machine where agent is running
version: StringVersion of the agent, used for compatibility checks
gui: boolIndicates that agent is running in GUI mode
platform: StringOperating system platform, e.g. “linux”, “windows”, “darwin”
hwid: StringUnique hardware ID of machine, used for agent identification
server_host_and_port: StringHost and port of the server to connect to
email: StringEmail, used for login command
password: StringPassword, used for login command
secondary: boolFlag that channel used for API commands, not for data/publications
transient: boolIndicates that all created publications on this channel are transient and deleted after disconnection
is_service: boolRun as service
branch: StringRelease line the agent was built for (“stable”, “beta”): the server
offers upgrades out of the agent’s own channel, download/
Implementations§
Source§impl AgentInfo
impl AgentInfo
pub fn is_support_server_control(&self) -> bool
pub fn is_support_backpressure(&self) -> bool
pub fn get_unique_id(&self) -> String
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AgentInfo
impl<'de> Deserialize<'de> for AgentInfo
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>,
impl Eq for AgentInfo
Source§impl Message for AgentInfo
impl Message for AgentInfo
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.