#[non_exhaustive]pub struct ReplicationConfigurationBuilder { /* private fields */ }
Expand description
A builder for ReplicationConfiguration
.
Implementations§
source§impl ReplicationConfigurationBuilder
impl ReplicationConfigurationBuilder
sourcepub fn rules(self, input: ReplicationRule) -> Self
pub fn rules(self, input: ReplicationRule) -> Self
Appends an item to rules
.
To override the contents of this collection use set_rules
.
An array of objects representing the replication destinations and repository filters for a replication configuration.
sourcepub fn set_rules(self, input: Option<Vec<ReplicationRule>>) -> Self
pub fn set_rules(self, input: Option<Vec<ReplicationRule>>) -> Self
An array of objects representing the replication destinations and repository filters for a replication configuration.
sourcepub fn get_rules(&self) -> &Option<Vec<ReplicationRule>>
pub fn get_rules(&self) -> &Option<Vec<ReplicationRule>>
An array of objects representing the replication destinations and repository filters for a replication configuration.
sourcepub fn build(self) -> Result<ReplicationConfiguration, BuildError>
pub fn build(self) -> Result<ReplicationConfiguration, BuildError>
Consumes the builder and constructs a ReplicationConfiguration
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ReplicationConfigurationBuilder
impl Clone for ReplicationConfigurationBuilder
source§fn clone(&self) -> ReplicationConfigurationBuilder
fn clone(&self) -> ReplicationConfigurationBuilder
Returns a copy 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 Default for ReplicationConfigurationBuilder
impl Default for ReplicationConfigurationBuilder
source§fn default() -> ReplicationConfigurationBuilder
fn default() -> ReplicationConfigurationBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for ReplicationConfigurationBuilder
impl PartialEq for ReplicationConfigurationBuilder
source§fn eq(&self, other: &ReplicationConfigurationBuilder) -> bool
fn eq(&self, other: &ReplicationConfigurationBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ReplicationConfigurationBuilder
Auto Trait Implementations§
impl Freeze for ReplicationConfigurationBuilder
impl RefUnwindSafe for ReplicationConfigurationBuilder
impl Send for ReplicationConfigurationBuilder
impl Sync for ReplicationConfigurationBuilder
impl Unpin for ReplicationConfigurationBuilder
impl UnwindSafe for ReplicationConfigurationBuilder
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.