Struct google_api_proto::google::cloud::clouddms::v1::DatabaseEntity
source · pub struct DatabaseEntity {
pub short_name: String,
pub parent_entity: String,
pub tree: i32,
pub entity_type: i32,
pub mappings: Vec<EntityMapping>,
pub entity_ddl: Vec<EntityDdl>,
pub issues: Vec<EntityIssue>,
pub entity_body: Option<EntityBody>,
}
Expand description
The base entity type for all the database related entities. The message contains the entity name, the name of its parent, the entity type, and the specific details per entity type.
Fields§
§short_name: String
The short name (e.g. table name) of the entity.
parent_entity: String
The full name of the parent entity (e.g. schema name).
tree: i32
The type of tree the entity belongs to.
entity_type: i32
The type of the database entity (table, view, index, …).
mappings: Vec<EntityMapping>
Details about entity mappings. For source tree entities, this holds the draft entities which were generated by the mapping rules. For draft tree entities, this holds the source entities which were converted to form the draft entity. Destination entities will have no mapping details.
entity_ddl: Vec<EntityDdl>
Details about the entity DDL script. Multiple DDL scripts are provided for child entities such as a table entity will have one DDL for the table with additional DDLs for each index, constraint and such.
issues: Vec<EntityIssue>
Details about the various issues found for the entity.
entity_body: Option<EntityBody>
The specific body for each entity type.
Implementations§
source§impl DatabaseEntity
impl DatabaseEntity
sourcepub fn tree(&self) -> TreeType
pub fn tree(&self) -> TreeType
Returns the enum value of tree
, or the default if the field is set to an invalid enum value.
sourcepub fn entity_type(&self) -> DatabaseEntityType
pub fn entity_type(&self) -> DatabaseEntityType
Returns the enum value of entity_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_entity_type(&mut self, value: DatabaseEntityType)
pub fn set_entity_type(&mut self, value: DatabaseEntityType)
Sets entity_type
to the provided enum value.
Trait Implementations§
source§impl Clone for DatabaseEntity
impl Clone for DatabaseEntity
source§fn clone(&self) -> DatabaseEntity
fn clone(&self) -> DatabaseEntity
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DatabaseEntity
impl Debug for DatabaseEntity
source§impl Default for DatabaseEntity
impl Default for DatabaseEntity
source§impl Message for DatabaseEntity
impl Message for DatabaseEntity
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 DatabaseEntity
impl PartialEq for DatabaseEntity
source§fn eq(&self, other: &DatabaseEntity) -> bool
fn eq(&self, other: &DatabaseEntity) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DatabaseEntity
Auto Trait Implementations§
impl !Freeze for DatabaseEntity
impl RefUnwindSafe for DatabaseEntity
impl Send for DatabaseEntity
impl Sync for DatabaseEntity
impl Unpin for DatabaseEntity
impl UnwindSafe for DatabaseEntity
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