pub struct EnrollPayload {
pub hostname: String,
pub friendly_name: String,
pub enrollment_token: Option<SecretString>,
pub capabilities: BTreeSet<Capability>,
pub service_app_name: String,
}Expand description
Payload for service enrollment request.
Used by both agents and MQTT services. Host information is reported
separately via ReportHostsPayload after authentication.
Fields§
§hostname: String§friendly_name: String§enrollment_token: Option<SecretString>§capabilities: BTreeSet<Capability>Capabilities this service supports.
The controller persists these in the services.capabilities column and
derives behavioral defaults from the resulting ServiceProfile.
service_app_name: StringThe binary/crate name of the enrolling service (e.g., "uptrakit-agent-ssh").
Derived from env!("CARGO_PKG_NAME") at compile time. Used for UI
display, extension conflict detection, and distinguishing service binaries.
Trait Implementations§
Source§impl Clone for EnrollPayload
impl Clone for EnrollPayload
Source§fn clone(&self) -> EnrollPayload
fn clone(&self) -> EnrollPayload
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 EnrollPayload
impl Debug for EnrollPayload
Source§impl<'de> Deserialize<'de> for EnrollPayload
impl<'de> Deserialize<'de> for EnrollPayload
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 EnrollPayload
Source§impl PartialEq for EnrollPayload
impl PartialEq for EnrollPayload
Source§impl Serialize for EnrollPayload
impl Serialize for EnrollPayload
impl StructuralPartialEq for EnrollPayload
Source§impl WireValidate for EnrollPayload
impl WireValidate for EnrollPayload
Source§fn wire_validate(&self) -> Result<(), WireValidationError>
fn wire_validate(&self) -> Result<(), WireValidationError>
Validate that all fields are within wire protocol size limits.
Auto Trait Implementations§
impl Freeze for EnrollPayload
impl RefUnwindSafe for EnrollPayload
impl Send for EnrollPayload
impl Sync for EnrollPayload
impl Unpin for EnrollPayload
impl UnsafeUnpin for EnrollPayload
impl UnwindSafe for EnrollPayload
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
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.