pub struct ApplyConfigurationRequest {
pub data: Vec<u8>,
pub mode: ApplyMode,
pub dry_run: bool,
pub try_mode_timeout: Option<Duration>,
}Expand description
Builder for creating configuration apply requests.
§Example
use talos_api_rs::resources::ApplyConfigurationRequest;
use talos_api_rs::resources::ApplyMode;
let request = ApplyConfigurationRequest::builder()
.config_yaml("machine:\n type: worker")
.mode(ApplyMode::NoReboot)
.dry_run(true)
.build();Fields§
§data: Vec<u8>Raw configuration data (YAML bytes)
mode: ApplyModeMode for applying configuration
dry_run: boolIf true, validate only without applying
try_mode_timeout: Option<Duration>Timeout for try mode (optional)
Implementations§
Trait Implementations§
Source§impl Clone for ApplyConfigurationRequest
impl Clone for ApplyConfigurationRequest
Source§fn clone(&self) -> ApplyConfigurationRequest
fn clone(&self) -> ApplyConfigurationRequest
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 ApplyConfigurationRequest
impl Debug for ApplyConfigurationRequest
Source§impl Default for ApplyConfigurationRequest
impl Default for ApplyConfigurationRequest
Source§fn default() -> ApplyConfigurationRequest
fn default() -> ApplyConfigurationRequest
Returns the “default value” for a type. Read more
Source§impl From<ApplyConfigurationRequest> for ApplyConfigurationRequest
impl From<ApplyConfigurationRequest> for ApplyConfigurationRequest
Source§fn from(req: ApplyConfigurationRequest) -> Self
fn from(req: ApplyConfigurationRequest) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ApplyConfigurationRequest
impl RefUnwindSafe for ApplyConfigurationRequest
impl Send for ApplyConfigurationRequest
impl Sync for ApplyConfigurationRequest
impl Unpin for ApplyConfigurationRequest
impl UnwindSafe for ApplyConfigurationRequest
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request