pub struct DeclarativeActionV1 {
pub action_id: String,
pub target: String,
pub resource: String,
pub kind: ActionKindV1,
pub rollback: RollbackSupportV1,
}Fields§
§action_id: String§target: String§resource: String§kind: ActionKindV1§rollback: RollbackSupportV1Implementations§
Source§impl DeclarativeActionV1
impl DeclarativeActionV1
pub fn create_managed_file( action_id: impl Into<String>, target: impl Into<String>, resource: impl Into<String>, destination: PathBuf, desired_hash: u64, requires_admin: bool, ) -> Self
pub fn create_managed_file_with_backup( action_id: impl Into<String>, target: impl Into<String>, resource: impl Into<String>, spec: ManagedFileCreationWithBackupSpecV1, ) -> Self
pub fn update_managed_file( action_id: impl Into<String>, target: impl Into<String>, resource: impl Into<String>, spec: ManagedFileUpdateSpecV1, ) -> Self
pub fn relocate_managed_file( action_id: impl Into<String>, target: impl Into<String>, resource: impl Into<String>, spec: ManagedFileRelocationSpecV1, ) -> Self
pub fn remove_managed_file( action_id: impl Into<String>, target: impl Into<String>, resource: impl Into<String>, spec: ManagedFileRemoveSpecV1, ) -> Self
pub fn remove_managed_file_with_backup( action_id: impl Into<String>, target: impl Into<String>, resource: impl Into<String>, spec: ManagedFileRemoveWithBackupSpecV1, ) -> Self
pub fn force_remove_managed_file( action_id: impl Into<String>, target: impl Into<String>, resource: impl Into<String>, spec: ForcedManagedFileRemoveSpecV1, ) -> Self
pub fn merge_managed_json( action_id: impl Into<String>, target: impl Into<String>, resource: impl Into<String>, spec: ManagedJsonMergeSpecV1, ) -> Self
pub fn remove_managed_json( action_id: impl Into<String>, target: impl Into<String>, resource: impl Into<String>, spec: ManagedJsonRemoveSpecV1, ) -> Self
pub fn relocate_managed_json( action_id: impl Into<String>, target: impl Into<String>, resource: impl Into<String>, spec: ManagedJsonRelocationSpecV1, ) -> Self
pub fn create_shell_launcher( action_id: impl Into<String>, target: impl Into<String>, resource: impl Into<String>, receipt: ShellLauncherReceiptV1, resources: Vec<ShellLauncherResourceV1>, ) -> Self
pub fn update_shell_launcher( action_id: impl Into<String>, target: impl Into<String>, resource: impl Into<String>, previous_receipt: ShellLauncherReceiptV1, desired_receipt: ShellLauncherReceiptV1, resources: Vec<ShellLauncherUpdateResourceV1>, ) -> Self
pub fn remove_shell_launcher( action_id: impl Into<String>, target: impl Into<String>, resource: impl Into<String>, previous_receipt: ShellLauncherReceiptV1, resources: Vec<ShellLauncherRemovalResourceV1>, ) -> Self
pub fn remove_legacy_shell_launcher( action_id: impl Into<String>, target: impl Into<String>, resource: impl Into<String>, resources: Vec<ShellLauncherRemovalResourceV1>, ) -> Self
pub fn replace_shell_snapshot( action_id: impl Into<String>, target: impl Into<String>, resource: impl Into<String>, spec: ShellSnapshotReplacementSpecV1, ) -> Self
pub fn replace_shell_cache( action_id: impl Into<String>, target: impl Into<String>, resource: impl Into<String>, spec: ShellCacheReplacementSpecV1, ) -> Self
pub fn remove_shell_cache( action_id: impl Into<String>, target: impl Into<String>, resource: impl Into<String>, spec: ShellCacheRemovalSpecV1, ) -> Self
pub fn remove_shell_snapshot( action_id: impl Into<String>, target: impl Into<String>, resource: impl Into<String>, spec: ShellSnapshotRemovalSpecV1, ) -> Self
pub fn reconcile_shell_profile( action_id: impl Into<String>, target: impl Into<String>, resource: impl Into<String>, spec: ShellProfileReconciliationSpecV1, ) -> Self
pub fn reconcile_sys_split_dns( action_id: impl Into<String>, target: impl Into<String>, resource: impl Into<String>, previous: Option<SysSplitDnsStateV1>, desired: Option<SysSplitDnsStateV1>, ) -> Self
pub fn reconcile_sys_profile_blocks( action_id: impl Into<String>, target: impl Into<String>, resource: impl Into<String>, os_id: impl Into<String>, files: Vec<SysProfileBlockFileV1>, ) -> Self
pub fn replace_shell_rendered_file( action_id: impl Into<String>, target: impl Into<String>, resource: impl Into<String>, spec: ShellRenderedFileReplacementSpecV1, ) -> Self
pub fn remove_shell_rendered_file( action_id: impl Into<String>, target: impl Into<String>, resource: impl Into<String>, spec: ShellRenderedFileRemovalSpecV1, ) -> Self
Trait Implementations§
Source§impl Clone for DeclarativeActionV1
impl Clone for DeclarativeActionV1
Source§fn clone(&self) -> DeclarativeActionV1
fn clone(&self) -> DeclarativeActionV1
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DeclarativeActionV1
impl Debug for DeclarativeActionV1
Source§impl<'de> Deserialize<'de> for DeclarativeActionV1
impl<'de> Deserialize<'de> for DeclarativeActionV1
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DeclarativeActionV1
Source§impl PartialEq for DeclarativeActionV1
impl PartialEq for DeclarativeActionV1
Source§impl Serialize for DeclarativeActionV1
impl Serialize for DeclarativeActionV1
impl StructuralPartialEq for DeclarativeActionV1
Auto Trait Implementations§
impl Freeze for DeclarativeActionV1
impl RefUnwindSafe for DeclarativeActionV1
impl Send for DeclarativeActionV1
impl Sync for DeclarativeActionV1
impl Unpin for DeclarativeActionV1
impl UnsafeUnpin for DeclarativeActionV1
impl UnwindSafe for DeclarativeActionV1
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.