Struct google_api_proto::google::cloud::clouddms::v1::ConstraintEntity
source · pub struct ConstraintEntity {
pub name: String,
pub type: String,
pub table_columns: Vec<String>,
pub custom_features: Option<Struct>,
pub reference_columns: Vec<String>,
pub reference_table: String,
pub table_name: String,
}
Expand description
Constraint is not used as an independent entity, it is retrieved as part of another entity such as Table or View.
Fields§
§name: String
The name of the table constraint.
type: String
Type of constraint, for example unique, primary key, foreign key (currently only primary key is supported).
table_columns: Vec<String>
Table columns used as part of the Constraint, for example primary key constraint should list the columns which constitutes the key.
custom_features: Option<Struct>
Custom engine specific features.
reference_columns: Vec<String>
Reference columns which may be associated with the constraint. For example, if the constraint is a FOREIGN_KEY, this represents the list of full names of referenced columns by the foreign key.
reference_table: String
Reference table which may be associated with the constraint. For example, if the constraint is a FOREIGN_KEY, this represents the list of full name of the referenced table by the foreign key.
table_name: String
Table which is associated with the constraint. In case the constraint is defined on a table, this field is left empty as this information is stored in parent_name. However, if constraint is defined on a view, this field stores the table name on which the view is defined.
Trait Implementations§
source§impl Clone for ConstraintEntity
impl Clone for ConstraintEntity
source§fn clone(&self) -> ConstraintEntity
fn clone(&self) -> ConstraintEntity
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ConstraintEntity
impl Debug for ConstraintEntity
source§impl Default for ConstraintEntity
impl Default for ConstraintEntity
source§impl Message for ConstraintEntity
impl Message for ConstraintEntity
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 ConstraintEntity
impl PartialEq for ConstraintEntity
source§fn eq(&self, other: &ConstraintEntity) -> bool
fn eq(&self, other: &ConstraintEntity) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ConstraintEntity
Auto Trait Implementations§
impl Freeze for ConstraintEntity
impl RefUnwindSafe for ConstraintEntity
impl Send for ConstraintEntity
impl Sync for ConstraintEntity
impl Unpin for ConstraintEntity
impl UnwindSafe for ConstraintEntity
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