Struct google_api_proto::google::storagetransfer::v1::TransferOptions
source · pub struct TransferOptions {
pub overwrite_objects_already_existing_in_sink: bool,
pub delete_objects_unique_in_sink: bool,
pub delete_objects_from_source_after_transfer: bool,
pub overwrite_when: i32,
pub metadata_options: Option<MetadataOptions>,
}
Expand description
TransferOptions define the actions to be performed on objects in a transfer.
Fields§
§overwrite_objects_already_existing_in_sink: bool
When to overwrite objects that already exist in the sink. The default is that only objects that are different from the source are ovewritten. If true, all objects in the sink whose name matches an object in the source are overwritten with the source object.
delete_objects_unique_in_sink: bool
Whether objects that exist only in the sink should be deleted.
Note: This option and [delete_objects_from_source_after_transfer][google.storagetransfer.v1.TransferOptions.delete_objects_from_source_after_transfer] are mutually exclusive.
delete_objects_from_source_after_transfer: bool
Whether objects should be deleted from the source after they are transferred to the sink.
Note: This option and [delete_objects_unique_in_sink][google.storagetransfer.v1.TransferOptions.delete_objects_unique_in_sink] are mutually exclusive.
overwrite_when: i32
When to overwrite objects that already exist in the sink. If not set, overwrite behavior is determined by [overwrite_objects_already_existing_in_sink][google.storagetransfer.v1.TransferOptions.overwrite_objects_already_existing_in_sink].
metadata_options: Option<MetadataOptions>
Represents the selected metadata options for a transfer job.
Implementations§
source§impl TransferOptions
impl TransferOptions
sourcepub fn overwrite_when(&self) -> OverwriteWhen
pub fn overwrite_when(&self) -> OverwriteWhen
Returns the enum value of overwrite_when
, or the default if the field is set to an invalid enum value.
sourcepub fn set_overwrite_when(&mut self, value: OverwriteWhen)
pub fn set_overwrite_when(&mut self, value: OverwriteWhen)
Sets overwrite_when
to the provided enum value.
Trait Implementations§
source§impl Clone for TransferOptions
impl Clone for TransferOptions
source§fn clone(&self) -> TransferOptions
fn clone(&self) -> TransferOptions
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TransferOptions
impl Debug for TransferOptions
source§impl Default for TransferOptions
impl Default for TransferOptions
source§impl Message for TransferOptions
impl Message for TransferOptions
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for TransferOptions
impl PartialEq for TransferOptions
source§fn eq(&self, other: &TransferOptions) -> bool
fn eq(&self, other: &TransferOptions) -> bool
self
and other
values to be equal, and is used
by ==
.impl Copy for TransferOptions
impl StructuralPartialEq for TransferOptions
Auto Trait Implementations§
impl Freeze for TransferOptions
impl RefUnwindSafe for TransferOptions
impl Send for TransferOptions
impl Sync for TransferOptions
impl Unpin for TransferOptions
impl UnwindSafe for TransferOptions
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request