Struct google_api_proto::google::cloud::clouddms::v1::EntityMapping
source · pub struct EntityMapping {
pub source_entity: String,
pub draft_entity: String,
pub source_type: i32,
pub draft_type: i32,
pub mapping_log: Vec<EntityMappingLogEntry>,
}
Expand description
Details of the mappings of a database entity.
Fields§
§source_entity: String
Source entity full name. The source entity can also be a column, index or constraint using the same naming notation schema.table.column.
draft_entity: String
Target entity full name. The draft entity can also include a column, index or constraint using the same naming notation schema.table.column.
source_type: i32
Type of source entity.
draft_type: i32
Type of draft entity.
mapping_log: Vec<EntityMappingLogEntry>
Entity mapping log entries. Multiple rules can be effective and contribute changes to a converted entity, such as a rule can handle the entity name, another rule can handle an entity type. In addition, rules which did not change the entity are also logged along with the reason preventing them to do so.
Implementations§
source§impl EntityMapping
impl EntityMapping
sourcepub fn source_type(&self) -> DatabaseEntityType
pub fn source_type(&self) -> DatabaseEntityType
Returns the enum value of source_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_source_type(&mut self, value: DatabaseEntityType)
pub fn set_source_type(&mut self, value: DatabaseEntityType)
Sets source_type
to the provided enum value.
sourcepub fn draft_type(&self) -> DatabaseEntityType
pub fn draft_type(&self) -> DatabaseEntityType
Returns the enum value of draft_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_draft_type(&mut self, value: DatabaseEntityType)
pub fn set_draft_type(&mut self, value: DatabaseEntityType)
Sets draft_type
to the provided enum value.
Trait Implementations§
source§impl Clone for EntityMapping
impl Clone for EntityMapping
source§fn clone(&self) -> EntityMapping
fn clone(&self) -> EntityMapping
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EntityMapping
impl Debug for EntityMapping
source§impl Default for EntityMapping
impl Default for EntityMapping
source§impl Message for EntityMapping
impl Message for EntityMapping
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 EntityMapping
impl PartialEq for EntityMapping
source§fn eq(&self, other: &EntityMapping) -> bool
fn eq(&self, other: &EntityMapping) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for EntityMapping
Auto Trait Implementations§
impl Freeze for EntityMapping
impl RefUnwindSafe for EntityMapping
impl Send for EntityMapping
impl Sync for EntityMapping
impl Unpin for EntityMapping
impl UnwindSafe for EntityMapping
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