pub struct ReplicationSettings {
pub src_bucket: String,
pub dst_bucket: String,
pub dst_host: String,
pub dst_token: String,
pub entries: Vec<String>,
pub include: HashMap<String, String>,
pub exclude: HashMap<String, String>,
pub each_n: Option<u64>,
pub each_s: Option<f64>,
pub when: Option<Value>,
}
Expand description
Replication settings
Fields§
§src_bucket: String
Source bucket
dst_bucket: String
Destination bucket
dst_host: String
Destination host URL (e.g. https://reductstore.com)
dst_token: String
Destination access token
entries: Vec<String>
Entries to replicate. If empty, all entries are replicated. Wildcards are supported.
include: HashMap<String, String>
Labels to include
exclude: HashMap<String, String>
Labels to exclude
each_n: Option<u64>
Replication each N-th record
each_s: Option<f64>
Replication a record every S seconds
when: Option<Value>
When condition
Trait Implementations§
Source§impl Clone for ReplicationSettings
impl Clone for ReplicationSettings
Source§fn clone(&self) -> ReplicationSettings
fn clone(&self) -> ReplicationSettings
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 ReplicationSettings
impl Debug for ReplicationSettings
Source§impl Default for ReplicationSettings
impl Default for ReplicationSettings
Source§fn default() -> ReplicationSettings
fn default() -> ReplicationSettings
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ReplicationSettings
impl<'de> Deserialize<'de> for ReplicationSettings
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ReplicationSettings, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ReplicationSettings, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ReplicationSettings
impl PartialEq for ReplicationSettings
Source§impl Serialize for ReplicationSettings
impl Serialize for ReplicationSettings
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ReplicationSettings
Auto Trait Implementations§
impl Freeze for ReplicationSettings
impl RefUnwindSafe for ReplicationSettings
impl Send for ReplicationSettings
impl Sync for ReplicationSettings
impl Unpin for ReplicationSettings
impl UnwindSafe for ReplicationSettings
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