#[non_exhaustive]pub struct ReplaceContentEntryBuilder { /* private fields */ }Expand description
A builder for ReplaceContentEntry.
Implementations§
source§impl ReplaceContentEntryBuilder
impl ReplaceContentEntryBuilder
sourcepub fn file_path(self, input: impl Into<String>) -> Self
pub fn file_path(self, input: impl Into<String>) -> Self
The path of the conflicting file.
This field is required.sourcepub fn set_file_path(self, input: Option<String>) -> Self
pub fn set_file_path(self, input: Option<String>) -> Self
The path of the conflicting file.
sourcepub fn get_file_path(&self) -> &Option<String>
pub fn get_file_path(&self) -> &Option<String>
The path of the conflicting file.
sourcepub fn replacement_type(self, input: ReplacementTypeEnum) -> Self
pub fn replacement_type(self, input: ReplacementTypeEnum) -> Self
The replacement type to use when determining how to resolve the conflict.
This field is required.sourcepub fn set_replacement_type(self, input: Option<ReplacementTypeEnum>) -> Self
pub fn set_replacement_type(self, input: Option<ReplacementTypeEnum>) -> Self
The replacement type to use when determining how to resolve the conflict.
sourcepub fn get_replacement_type(&self) -> &Option<ReplacementTypeEnum>
pub fn get_replacement_type(&self) -> &Option<ReplacementTypeEnum>
The replacement type to use when determining how to resolve the conflict.
sourcepub fn content(self, input: Blob) -> Self
pub fn content(self, input: Blob) -> Self
The base-64 encoded content to use when the replacement type is USE_NEW_CONTENT.
sourcepub fn set_content(self, input: Option<Blob>) -> Self
pub fn set_content(self, input: Option<Blob>) -> Self
The base-64 encoded content to use when the replacement type is USE_NEW_CONTENT.
sourcepub fn get_content(&self) -> &Option<Blob>
pub fn get_content(&self) -> &Option<Blob>
The base-64 encoded content to use when the replacement type is USE_NEW_CONTENT.
sourcepub fn file_mode(self, input: FileModeTypeEnum) -> Self
pub fn file_mode(self, input: FileModeTypeEnum) -> Self
The file mode to apply during conflict resoltion.
sourcepub fn set_file_mode(self, input: Option<FileModeTypeEnum>) -> Self
pub fn set_file_mode(self, input: Option<FileModeTypeEnum>) -> Self
The file mode to apply during conflict resoltion.
sourcepub fn get_file_mode(&self) -> &Option<FileModeTypeEnum>
pub fn get_file_mode(&self) -> &Option<FileModeTypeEnum>
The file mode to apply during conflict resoltion.
sourcepub fn build(self) -> Result<ReplaceContentEntry, BuildError>
pub fn build(self) -> Result<ReplaceContentEntry, BuildError>
Consumes the builder and constructs a ReplaceContentEntry.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ReplaceContentEntryBuilder
impl Clone for ReplaceContentEntryBuilder
source§fn clone(&self) -> ReplaceContentEntryBuilder
fn clone(&self) -> ReplaceContentEntryBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ReplaceContentEntryBuilder
impl Debug for ReplaceContentEntryBuilder
source§impl Default for ReplaceContentEntryBuilder
impl Default for ReplaceContentEntryBuilder
source§fn default() -> ReplaceContentEntryBuilder
fn default() -> ReplaceContentEntryBuilder
source§impl PartialEq for ReplaceContentEntryBuilder
impl PartialEq for ReplaceContentEntryBuilder
source§fn eq(&self, other: &ReplaceContentEntryBuilder) -> bool
fn eq(&self, other: &ReplaceContentEntryBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ReplaceContentEntryBuilder
Auto Trait Implementations§
impl Freeze for ReplaceContentEntryBuilder
impl RefUnwindSafe for ReplaceContentEntryBuilder
impl Send for ReplaceContentEntryBuilder
impl Sync for ReplaceContentEntryBuilder
impl Unpin for ReplaceContentEntryBuilder
impl UnwindSafe for ReplaceContentEntryBuilder
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> 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>
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