pub struct SyncConfig {
pub conflict_detection: Option<String>,
pub conflict_handler: Option<String>,
pub lambda_conflict_handler_config: Option<LambdaConflictHandlerConfig>,
}
Expand description
Describes a Sync configuration for a resolver.
Contains information on which Conflict Detection as well as Resolution strategy should be performed when the resolver is invoked.
Fields§
§conflict_detection: Option<String>
The Conflict Detection strategy to use.
-
VERSION: Detect conflicts based on object versions for this resolver.
-
NONE: Do not detect conflicts when executing this resolver.
conflict_handler: Option<String>
The Conflict Resolution strategy to perform in the event of a conflict.
-
OPTIMISTIC_CONCURRENCY: Resolve conflicts by rejecting mutations when versions do not match the latest version at the server.
-
AUTOMERGE: Resolve conflicts with the Automerge conflict resolution strategy.
-
LAMBDA: Resolve conflicts with a Lambda function supplied in the LambdaConflictHandlerConfig.
lambda_conflict_handler_config: Option<LambdaConflictHandlerConfig>
The LambdaConflictHandlerConfig
when configuring LAMBDA as the Conflict Handler.
Trait Implementations§
Source§impl Clone for SyncConfig
impl Clone for SyncConfig
Source§fn clone(&self) -> SyncConfig
fn clone(&self) -> SyncConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more