pub struct ConfigPreview {
pub human_diff: String,
pub machine_plan: MachinePlan,
/* private fields */
}Fields§
§human_diff: String§machine_plan: MachinePlanImplementations§
Source§impl ConfigPreview
impl ConfigPreview
pub fn build( target: UserConfigTarget, port: u16, auth_command: &AuthCommand, ) -> Result<Self, ConfigError>
Sourcepub fn confirm(self) -> ConfirmedConfigPlan
pub fn confirm(self) -> ConfirmedConfigPlan
Preserves the in-process configuration API used by existing trusted
callers. Operational alpha command execution must use
Self::confirm_digest so the separately rendered preview is bound.
pub fn confirm_digest( self, supplied_preview_digest: &str, ) -> Result<ConfirmedConfigPlan, ConfigError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ConfigPreview
impl RefUnwindSafe for ConfigPreview
impl Send for ConfigPreview
impl Sync for ConfigPreview
impl Unpin for ConfigPreview
impl UnsafeUnpin for ConfigPreview
impl UnwindSafe for ConfigPreview
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