pub enum MigrationOperation {
CreateFolder {
path: PathBuf,
},
CopyFile {
source_path: PathBuf,
destination_path: PathBuf,
expected_sha256: String,
},
MoveObject {
source_path: PathBuf,
destination_path: PathBuf,
expected_sha256: String,
snapshot_path: Option<PathBuf>,
snapshot_sha256: Option<String>,
},
UpdateAdapter {
path: PathBuf,
managed_block: String,
expected_sha256: String,
expected_result_sha256: String,
snapshot_path: Option<PathBuf>,
snapshot_sha256: Option<String>,
},
UpdateIgnorePolicy {
path: PathBuf,
content: String,
expected_sha256: String,
expected_result_sha256: String,
snapshot_path: Option<PathBuf>,
snapshot_sha256: Option<String>,
},
UpdatePolicy {
manifest_path: PathBuf,
policy: String,
value: Value,
expected_sha256: String,
expected_result_sha256: String,
snapshot_path: Option<PathBuf>,
snapshot_sha256: Option<String>,
},
ChangeKind {
manifest_path: PathBuf,
new_kind: FolderbaseKind,
expected_sha256: String,
expected_result_sha256: String,
snapshot_path: Option<PathBuf>,
snapshot_sha256: Option<String>,
},
MarkCanonical {
object_record_path: PathBuf,
expected_sha256: String,
expected_result_sha256: String,
snapshot_path: Option<PathBuf>,
snapshot_sha256: Option<String>,
},
MarkSuperseded {
object_record_path: PathBuf,
superseded_by: String,
expected_sha256: String,
expected_result_sha256: String,
snapshot_path: Option<PathBuf>,
snapshot_sha256: Option<String>,
},
ArchiveObject {
object_record_path: PathBuf,
expected_sha256: String,
expected_result_sha256: String,
snapshot_path: Option<PathBuf>,
snapshot_sha256: Option<String>,
},
AddRelationship {
object_record_path: PathBuf,
relationship_type: String,
target_object_id: String,
expected_sha256: String,
expected_result_sha256: String,
snapshot_path: Option<PathBuf>,
snapshot_sha256: Option<String>,
},
}Variants§
CreateFolder
CopyFile
MoveObject
Fields
UpdateAdapter
Fields
UpdateIgnorePolicy
Fields
UpdatePolicy
Fields
ChangeKind
Fields
§
new_kind: FolderbaseKindMarkCanonical
Fields
MarkSuperseded
Fields
ArchiveObject
Fields
AddRelationship
Implementations§
Source§impl MigrationOperation
impl MigrationOperation
pub fn move_object( source_path: impl Into<PathBuf>, destination_path: impl Into<PathBuf>, ) -> Self
pub fn update_adapter( path: impl Into<PathBuf>, managed_block: impl Into<String>, ) -> Self
pub fn update_ignore_policy(content: impl Into<String>) -> Self
pub fn update_policy(policy: impl Into<String>, value: Value) -> Self
pub fn change_kind(new_kind: FolderbaseKind) -> Self
pub fn mark_canonical(object_record_path: impl Into<PathBuf>) -> Self
pub fn mark_superseded( object_record_path: impl Into<PathBuf>, superseded_by: impl Into<String>, ) -> Self
pub fn archive_object(object_record_path: impl Into<PathBuf>) -> Self
pub fn add_relationship( object_record_path: impl Into<PathBuf>, relationship_type: impl Into<String>, target_object_id: impl Into<String>, ) -> Self
Trait Implementations§
Source§impl Clone for MigrationOperation
impl Clone for MigrationOperation
Source§fn clone(&self) -> MigrationOperation
fn clone(&self) -> MigrationOperation
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 MigrationOperation
impl Debug for MigrationOperation
Source§impl<'de> Deserialize<'de> for MigrationOperation
impl<'de> Deserialize<'de> for MigrationOperation
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 MigrationOperation
Source§impl PartialEq for MigrationOperation
impl PartialEq for MigrationOperation
Source§impl Serialize for MigrationOperation
impl Serialize for MigrationOperation
impl StructuralPartialEq for MigrationOperation
Auto Trait Implementations§
impl Freeze for MigrationOperation
impl RefUnwindSafe for MigrationOperation
impl Send for MigrationOperation
impl Sync for MigrationOperation
impl Unpin for MigrationOperation
impl UnsafeUnpin for MigrationOperation
impl UnwindSafe for MigrationOperation
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.