pub struct InstallationRemoteState { /* private fields */ }Expand description
Bounded exact remote state used only for read-only planning.
Implementations§
Source§impl InstallationRemoteState
impl InstallationRemoteState
Sourcepub fn new(
target: InstallationTarget,
lifecycle: InstallationLifecycleState,
contract: Option<InstallationContract>,
artifacts: Vec<InstallationArtifact>,
roles: Vec<ObservedInstallationRole>,
credentials: Vec<ObservedCredentialDestination>,
supported_features: Vec<InstallationFeature>,
) -> Result<Self, InstallationPlanError>
pub fn new( target: InstallationTarget, lifecycle: InstallationLifecycleState, contract: Option<InstallationContract>, artifacts: Vec<InstallationArtifact>, roles: Vec<ObservedInstallationRole>, credentials: Vec<ObservedCredentialDestination>, supported_features: Vec<InstallationFeature>, ) -> Result<Self, InstallationPlanError>
Validates and canonicalizes one bounded remote observation.
Sourcepub const fn target(&self) -> &InstallationTarget
pub const fn target(&self) -> &InstallationTarget
Exact selected target.
Sourcepub const fn lifecycle(&self) -> InstallationLifecycleState
pub const fn lifecycle(&self) -> InstallationLifecycleState
Current lifecycle/readiness state.
Trait Implementations§
Source§impl Clone for InstallationRemoteState
impl Clone for InstallationRemoteState
Source§impl Debug for InstallationRemoteState
impl Debug for InstallationRemoteState
impl Eq for InstallationRemoteState
Source§impl PartialEq for InstallationRemoteState
impl PartialEq for InstallationRemoteState
impl StructuralPartialEq for InstallationRemoteState
Auto Trait Implementations§
impl Freeze for InstallationRemoteState
impl RefUnwindSafe for InstallationRemoteState
impl Send for InstallationRemoteState
impl Sync for InstallationRemoteState
impl Unpin for InstallationRemoteState
impl UnsafeUnpin for InstallationRemoteState
impl UnwindSafe for InstallationRemoteState
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