pub struct AgentConfigEntry {
pub value: AgentValue,
pub type_: Option<String>,
pub title: Option<String>,
pub description: Option<String>,
pub hidden: bool,
}Fields§
§value: AgentValue§type_: Option<String>§title: Option<String>§description: Option<String>Indicates whether this configuration entry should be hidden from the user interface.
If set to true, the entry will be hidden. The default behavior is to show the entry.
Implementations§
Source§impl AgentConfigEntry
impl AgentConfigEntry
pub fn new(value: AgentValue, type_: &str) -> Self
pub fn with_title(self, title: &str) -> Self
pub fn with_description(self, description: &str) -> Self
Trait Implementations§
Source§impl Clone for AgentConfigEntry
impl Clone for AgentConfigEntry
Source§fn clone(&self) -> AgentConfigEntry
fn clone(&self) -> AgentConfigEntry
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 AgentConfigEntry
impl Debug for AgentConfigEntry
Source§impl Default for AgentConfigEntry
impl Default for AgentConfigEntry
Source§fn default() -> AgentConfigEntry
fn default() -> AgentConfigEntry
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AgentConfigEntry
impl<'de> Deserialize<'de> for AgentConfigEntry
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 AgentConfigEntry
impl RefUnwindSafe for AgentConfigEntry
impl Send for AgentConfigEntry
impl Sync for AgentConfigEntry
impl Unpin for AgentConfigEntry
impl UnwindSafe for AgentConfigEntry
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