#[repr(i32)]pub enum OverwriteWhen {
Unspecified = 0,
Different = 1,
Never = 2,
Always = 3,
}
Expand description
Specifies when to overwrite an object in the sink when an object with matching name is found in the source.
Variants§
Unspecified = 0
Overwrite behavior is unspecified.
Different = 1
Overwrites destination objects with the source objects, only if the objects have the same name but different HTTP ETags or checksum values.
Never = 2
Never overwrites a destination object if a source object has the same name. In this case, the source object is not transferred.
Always = 3
Always overwrite the destination object with the source object, even if the HTTP Etags or checksum values are the same.
Implementations§
source§impl OverwriteWhen
impl OverwriteWhen
source§impl OverwriteWhen
impl OverwriteWhen
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for OverwriteWhen
impl Clone for OverwriteWhen
source§fn clone(&self) -> OverwriteWhen
fn clone(&self) -> OverwriteWhen
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for OverwriteWhen
impl Debug for OverwriteWhen
source§impl Default for OverwriteWhen
impl Default for OverwriteWhen
source§fn default() -> OverwriteWhen
fn default() -> OverwriteWhen
source§impl From<OverwriteWhen> for i32
impl From<OverwriteWhen> for i32
source§fn from(value: OverwriteWhen) -> i32
fn from(value: OverwriteWhen) -> i32
source§impl Hash for OverwriteWhen
impl Hash for OverwriteWhen
source§impl Ord for OverwriteWhen
impl Ord for OverwriteWhen
source§fn cmp(&self, other: &OverwriteWhen) -> Ordering
fn cmp(&self, other: &OverwriteWhen) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for OverwriteWhen
impl PartialEq for OverwriteWhen
source§fn eq(&self, other: &OverwriteWhen) -> bool
fn eq(&self, other: &OverwriteWhen) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for OverwriteWhen
impl PartialOrd for OverwriteWhen
source§fn partial_cmp(&self, other: &OverwriteWhen) -> Option<Ordering>
fn partial_cmp(&self, other: &OverwriteWhen) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for OverwriteWhen
impl TryFrom<i32> for OverwriteWhen
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<OverwriteWhen, UnknownEnumValue>
fn try_from(value: i32) -> Result<OverwriteWhen, UnknownEnumValue>
impl Copy for OverwriteWhen
impl Eq for OverwriteWhen
impl StructuralPartialEq for OverwriteWhen
Auto Trait Implementations§
impl Freeze for OverwriteWhen
impl RefUnwindSafe for OverwriteWhen
impl Send for OverwriteWhen
impl Sync for OverwriteWhen
impl Unpin for OverwriteWhen
impl UnwindSafe for OverwriteWhen
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§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