#[non_exhaustive]pub struct AgentRegistrationRequest {
pub agent_display_name: String,
pub agent_host: String,
pub version: String,
pub agent_description: Option<String>,
pub identity_csr_pem: String,
pub server_csr_pem: Option<String>,
pub server_certificate_pem: Option<String>,
pub server_certificate_chain_pem: Option<String>,
pub endpoints: Vec<AgentEndpoint>,
}Expand description
Request to register a new agent.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.agent_display_name: StringHuman-readable agent name.
agent_host: StringFQDN where the agent is hosted.
version: StringSemantic version (e.g., “1.0.0”).
agent_description: Option<String>Optional description.
identity_csr_pem: StringCSR for identity certificate (required).
server_csr_pem: Option<String>CSR for server certificate (mutually exclusive with server_certificate_pem).
server_certificate_pem: Option<String>BYOC server certificate (mutually exclusive with server_csr_pem).
server_certificate_chain_pem: Option<String>Certificate chain for BYOC server certificate.
endpoints: Vec<AgentEndpoint>Agent endpoints.
Implementations§
Source§impl AgentRegistrationRequest
impl AgentRegistrationRequest
Sourcepub fn new(
agent_display_name: impl Into<String>,
agent_host: impl Into<String>,
version: impl Into<String>,
identity_csr_pem: impl Into<String>,
endpoints: Vec<AgentEndpoint>,
) -> Self
pub fn new( agent_display_name: impl Into<String>, agent_host: impl Into<String>, version: impl Into<String>, identity_csr_pem: impl Into<String>, endpoints: Vec<AgentEndpoint>, ) -> Self
Create a new registration request with required fields.
Sourcepub fn with_description(self, description: impl Into<String>) -> Self
pub fn with_description(self, description: impl Into<String>) -> Self
Set the agent description.
Sourcepub fn with_server_csr_pem(self, csr: impl Into<String>) -> Self
pub fn with_server_csr_pem(self, csr: impl Into<String>) -> Self
Set the server CSR PEM.
Sourcepub fn with_server_certificate_pem(self, cert: impl Into<String>) -> Self
pub fn with_server_certificate_pem(self, cert: impl Into<String>) -> Self
Set the server certificate PEM (BYOC).
Sourcepub fn with_server_certificate_chain_pem(self, chain: impl Into<String>) -> Self
pub fn with_server_certificate_chain_pem(self, chain: impl Into<String>) -> Self
Set the server certificate chain PEM (BYOC).
Trait Implementations§
Source§impl Clone for AgentRegistrationRequest
impl Clone for AgentRegistrationRequest
Source§fn clone(&self) -> AgentRegistrationRequest
fn clone(&self) -> AgentRegistrationRequest
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 AgentRegistrationRequest
impl Debug for AgentRegistrationRequest
Auto Trait Implementations§
impl Freeze for AgentRegistrationRequest
impl RefUnwindSafe for AgentRegistrationRequest
impl Send for AgentRegistrationRequest
impl Sync for AgentRegistrationRequest
impl Unpin for AgentRegistrationRequest
impl UnsafeUnpin for AgentRegistrationRequest
impl UnwindSafe for AgentRegistrationRequest
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