pub struct AgentConfig {
pub card: String,
pub headers: BTreeMap<String, String>,
pub timeout: u64,
pub poll_every: u64,
pub enabled: Option<bool>,
pub disabled: Option<bool>,
}Expand description
One entry of a config-file agents block.
Fields§
§card: String§headers: BTreeMap<String, String>§timeout: u64§poll_every: u64§enabled: Option<bool>§disabled: Option<bool>Trait Implementations§
Source§impl Clone for AgentConfig
impl Clone for AgentConfig
Source§impl Debug for AgentConfig
impl Debug for AgentConfig
Source§impl Default for AgentConfig
impl Default for AgentConfig
Source§impl<'de> Deserialize<'de> for AgentConfig
impl<'de> Deserialize<'de> for AgentConfig
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 AgentConfig
impl PartialEq for AgentConfig
impl StructuralPartialEq for AgentConfig
Auto Trait Implementations§
impl Forget for AgentConfig
impl Freeze for AgentConfig
impl RefUnwindSafe for AgentConfig
impl Send for AgentConfig
impl Sync for AgentConfig
impl Unpin for AgentConfig
impl UnsafeUnpin for AgentConfig
impl UnwindSafe for AgentConfig
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