pub struct DeploymentSnapshot {
pub kind: String,
pub id: String,
pub created_at: String,
pub targets: Vec<String>,
pub managed_files: Vec<ManagedFile>,
pub changes: Vec<AppliedChange>,
pub rolled_back_to: Option<String>,
pub lockfile_sha256: Option<String>,
pub backup_root: String,
}Fields§
§kind: String§id: String§created_at: String§targets: Vec<String>§managed_files: Vec<ManagedFile>§changes: Vec<AppliedChange>§rolled_back_to: Option<String>§lockfile_sha256: Option<String>§backup_root: StringImplementations§
Source§impl DeploymentSnapshot
impl DeploymentSnapshot
pub fn path(home: &AgentpackHome, id: &str) -> PathBuf
pub fn backup_root(home: &AgentpackHome, id: &str) -> PathBuf
pub fn state_root(home: &AgentpackHome, id: &str) -> PathBuf
pub fn load(path: &Path) -> Result<Self>
pub fn save(&self, path: &Path) -> Result<()>
Trait Implementations§
Source§impl Clone for DeploymentSnapshot
impl Clone for DeploymentSnapshot
Source§fn clone(&self) -> DeploymentSnapshot
fn clone(&self) -> DeploymentSnapshot
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 DeploymentSnapshot
impl Debug for DeploymentSnapshot
Source§impl<'de> Deserialize<'de> for DeploymentSnapshot
impl<'de> Deserialize<'de> for DeploymentSnapshot
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
Auto Trait Implementations§
impl Freeze for DeploymentSnapshot
impl RefUnwindSafe for DeploymentSnapshot
impl Send for DeploymentSnapshot
impl Sync for DeploymentSnapshot
impl Unpin for DeploymentSnapshot
impl UnwindSafe for DeploymentSnapshot
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