Struct google_api_proto::google::cloud::clouddms::v1::MappingRule
source · pub struct MappingRule {
pub name: String,
pub display_name: String,
pub state: i32,
pub rule_scope: i32,
pub filter: Option<MappingRuleFilter>,
pub rule_order: i64,
pub revision_id: String,
pub revision_create_time: Option<Timestamp>,
pub details: Option<Details>,
}Expand description
Definition of a transformation that is to be applied to a group of entities in the source schema. Several such transformations can be applied to an entity sequentially to define the corresponding entity in the target schema.
Fields§
§name: StringFull name of the mapping rule resource, in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{set}/mappingRule/{rule}.
display_name: StringOptional. A human readable name
state: i32Optional. The mapping rule state
rule_scope: i32Required. The rule scope
filter: Option<MappingRuleFilter>Required. The rule filter
rule_order: i64Required. The order in which the rule is applied. Lower order rules are applied before higher value rules so they may end up being overridden.
revision_id: StringOutput only. The revision ID of the mapping rule. A new revision is committed whenever the mapping rule is changed in any way. The format is an 8-character hexadecimal string.
revision_create_time: Option<Timestamp>Output only. The timestamp that the revision was created.
details: Option<Details>The rule specific details.
Implementations§
source§impl MappingRule
impl MappingRule
sourcepub fn state(&self) -> State
pub fn state(&self) -> State
Returns the enum value of state, or the default if the field is set to an invalid enum value.
sourcepub fn rule_scope(&self) -> DatabaseEntityType
pub fn rule_scope(&self) -> DatabaseEntityType
Returns the enum value of rule_scope, or the default if the field is set to an invalid enum value.
sourcepub fn set_rule_scope(&mut self, value: DatabaseEntityType)
pub fn set_rule_scope(&mut self, value: DatabaseEntityType)
Sets rule_scope to the provided enum value.
Trait Implementations§
source§impl Clone for MappingRule
impl Clone for MappingRule
source§fn clone(&self) -> MappingRule
fn clone(&self) -> MappingRule
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for MappingRule
impl Debug for MappingRule
source§impl Default for MappingRule
impl Default for MappingRule
source§impl Message for MappingRule
impl Message for MappingRule
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 MappingRule
impl PartialEq for MappingRule
source§fn eq(&self, other: &MappingRule) -> bool
fn eq(&self, other: &MappingRule) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for MappingRule
Auto Trait Implementations§
impl Freeze for MappingRule
impl RefUnwindSafe for MappingRule
impl Send for MappingRule
impl Sync for MappingRule
impl Unpin for MappingRule
impl UnwindSafe for MappingRule
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