pub struct SyncJobPolicy {
pub action: Option<String>,
pub file_matching_pattern: Option<SyncJobPolicyFileMatchingPattern>,
pub name: Option<String>,
pub source_exclude_directories: Option<Vec<String>>,
pub source_include_directories: Option<Vec<String>>,
pub source_root_path: Option<String>,
pub target_host: Option<String>,
pub target_path: Option<String>,
}
Fields§
§action: Option<String>
If ‘copy’, source files will be copied to the target cluster. If ‘sync’, the target directory will be made an image of the source directory: Files and directories that have been deleted on the source, have been moved within the target directory, or no longer match the selection criteria will be deleted from the target directory.
file_matching_pattern: Option<SyncJobPolicyFileMatchingPattern>
A file matching pattern, organized as an OR’ed set of AND’ed file criteria, for example ((a AND b) OR (x AND y)) used to define a set of files with specific properties. Policies of type ‘sync’ cannot use ‘path’ or time criteria in their matching patterns, but policies of type ‘copy’ can use all listed criteria.
name: Option<String>
User-assigned name of this sync policy.
source_exclude_directories: Option<Vec<String>>
Directories that will be excluded from the sync. Modifying this field will result in a full synchronization of all data.
source_include_directories: Option<Vec<String>>
Directories that will be included in the sync. Modifying this field will result in a full synchronization of all data.
source_root_path: Option<String>
The root directory on the source cluster the files will be synced from. Modifying this field will result in a full synchronization of all data.
target_host: Option<String>
Hostname or IP address of sync target cluster. Modifying the target cluster host can result in the policy being unrunnable if the new target does not match the current target association.
target_path: Option<String>
Absolute filesystem path on the target cluster for the sync destination.
Trait Implementations§
Source§impl Debug for SyncJobPolicy
impl Debug for SyncJobPolicy
Source§impl<'de> Deserialize<'de> for SyncJobPolicy
impl<'de> Deserialize<'de> for SyncJobPolicy
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>,
Auto Trait Implementations§
impl Freeze for SyncJobPolicy
impl RefUnwindSafe for SyncJobPolicy
impl Send for SyncJobPolicy
impl Sync for SyncJobPolicy
impl Unpin for SyncJobPolicy
impl UnwindSafe for SyncJobPolicy
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more