Enum google_api_proto::google::cloud::contentwarehouse::v1::UpdateType
source · #[repr(i32)]pub enum UpdateType {
Unspecified = 0,
Replace = 1,
Merge = 2,
InsertPropertiesByNames = 3,
ReplacePropertiesByNames = 4,
DeletePropertiesByNames = 5,
MergeAndReplaceOrInsertPropertiesByNames = 6,
}
Expand description
Update type of the requests.
Variants§
Unspecified = 0
Defaults to full replace behavior, ie. FULL_REPLACE.
Replace = 1
Fully replace all the fields (including previously linked raw document). Any field masks will be ignored.
Merge = 2
Merge the fields into the existing entities.
InsertPropertiesByNames = 3
Inserts the properties by names.
ReplacePropertiesByNames = 4
Replace the properties by names.
DeletePropertiesByNames = 5
Delete the properties by names.
MergeAndReplaceOrInsertPropertiesByNames = 6
For each of the property, replaces the property if the it exists, otherwise inserts a new property. And for the rest of the fields, merge them based on update mask and merge fields options.
Implementations§
source§impl UpdateType
impl UpdateType
source§impl UpdateType
impl UpdateType
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 UpdateType
impl Clone for UpdateType
source§fn clone(&self) -> UpdateType
fn clone(&self) -> UpdateType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UpdateType
impl Debug for UpdateType
source§impl Default for UpdateType
impl Default for UpdateType
source§fn default() -> UpdateType
fn default() -> UpdateType
source§impl From<UpdateType> for i32
impl From<UpdateType> for i32
source§fn from(value: UpdateType) -> i32
fn from(value: UpdateType) -> i32
source§impl Hash for UpdateType
impl Hash for UpdateType
source§impl Ord for UpdateType
impl Ord for UpdateType
source§fn cmp(&self, other: &UpdateType) -> Ordering
fn cmp(&self, other: &UpdateType) -> 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 UpdateType
impl PartialEq for UpdateType
source§fn eq(&self, other: &UpdateType) -> bool
fn eq(&self, other: &UpdateType) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for UpdateType
impl PartialOrd for UpdateType
source§fn partial_cmp(&self, other: &UpdateType) -> Option<Ordering>
fn partial_cmp(&self, other: &UpdateType) -> 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 UpdateType
impl TryFrom<i32> for UpdateType
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<UpdateType, DecodeError>
fn try_from(value: i32) -> Result<UpdateType, DecodeError>
impl Copy for UpdateType
impl Eq for UpdateType
impl StructuralPartialEq for UpdateType
Auto Trait Implementations§
impl Freeze for UpdateType
impl RefUnwindSafe for UpdateType
impl Send for UpdateType
impl Sync for UpdateType
impl Unpin for UpdateType
impl UnwindSafe for UpdateType
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