pub struct BeginArgsBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> BeginArgsBuilder<S>
impl<S: State> BeginArgsBuilder<S>
Sourcepub fn build(self) -> BeginArgswhere
S: IsComplete,
pub fn build(self) -> BeginArgswhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn server_id(self, value: Uuid) -> BeginArgsBuilder<SetServerId<S>>where
S::ServerId: IsUnset,
pub fn server_id(self, value: Uuid) -> BeginArgsBuilder<SetServerId<S>>where
S::ServerId: IsUnset,
Required.
ID of the machine to enroll against. Named server_id because that is
the name fielded agents send; the value has always identified the box.
Sourcepub fn spki(self, value: String) -> BeginArgsBuilder<SetSpki<S>>where
S::Spki: IsUnset,
pub fn spki(self, value: String) -> BeginArgsBuilder<SetSpki<S>>where
S::Spki: IsUnset,
Optional (Some / Option setters). Base64-standard-encoded DER SubjectPublicKeyInfo (SPKI) of the device’s public key. Only required when enrolling over a transport with no client certificate to read the key from (e.g. over Tailscale); omit it when enrolling over mTLS, where the key is taken from the presented client certificate. The returned challenge is bound to this key, so the same value must be supplied again when completing enrollment.
Sourcepub fn maybe_spki(self, value: Option<String>) -> BeginArgsBuilder<SetSpki<S>>where
S::Spki: IsUnset,
pub fn maybe_spki(self, value: Option<String>) -> BeginArgsBuilder<SetSpki<S>>where
S::Spki: IsUnset,
Optional (Some / Option setters). Base64-standard-encoded DER SubjectPublicKeyInfo (SPKI) of the device’s public key. Only required when enrolling over a transport with no client certificate to read the key from (e.g. over Tailscale); omit it when enrolling over mTLS, where the key is taken from the presented client certificate. The returned challenge is bound to this key, so the same value must be supplied again when completing enrollment.
Sourcepub fn token(self, value: String) -> BeginArgsBuilder<SetToken<S>>where
S::Token: IsUnset,
pub fn token(self, value: String) -> BeginArgsBuilder<SetToken<S>>where
S::Token: IsUnset,
Required.
The enrollment token issued by an operator for this machine.