pub struct AgentInstallSection {
pub nats_url: Option<String>,
pub nats_token: Option<String>,
pub nats_token_set: bool,
}Expand description
Self-service agent-installer knobs (GET /api/agents/installer) —
what the generated ZIP bakes in for a fresh PC. Kept server-side so the
restricted “download user” (viewer + the agent-install feature only)
never chooses — and never sees — these values.
Fields§
§nats_url: Option<String>NATS URL baked into the installer’s agent.toml. None → the backend’s
own configured [nats] url.
nats_token: Option<String>NATS token baked into install-agent.ps1. WRITE-ONLY: redacted from every GET response (GET /api/server-settings is viewer+).
nats_token_set: boolRead-only indicator computed by redacted() so the SPA can show “configured” without ever seeing the value. Never accepted from PUT.
Trait Implementations§
Source§impl Clone for AgentInstallSection
impl Clone for AgentInstallSection
Source§fn clone(&self) -> AgentInstallSection
fn clone(&self) -> AgentInstallSection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AgentInstallSection
impl Debug for AgentInstallSection
Source§impl Default for AgentInstallSection
impl Default for AgentInstallSection
Source§fn default() -> AgentInstallSection
fn default() -> AgentInstallSection
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AgentInstallSectionwhere
AgentInstallSection: Default,
impl<'de> Deserialize<'de> for AgentInstallSectionwhere
AgentInstallSection: Default,
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
impl Eq for AgentInstallSection
Source§impl PartialEq for AgentInstallSection
impl PartialEq for AgentInstallSection
Source§impl Serialize for AgentInstallSection
impl Serialize for AgentInstallSection
impl StructuralPartialEq for AgentInstallSection
Auto Trait Implementations§
impl Freeze for AgentInstallSection
impl RefUnwindSafe for AgentInstallSection
impl Send for AgentInstallSection
impl Sync for AgentInstallSection
impl Unpin for AgentInstallSection
impl UnsafeUnpin for AgentInstallSection
impl UnwindSafe for AgentInstallSection
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.