#[non_exhaustive]pub struct SynonymEntity {
pub source_entity: String,
pub source_type: DatabaseEntityType,
pub custom_features: Option<Struct>,
/* private fields */
}Expand description
Synonym’s parent is a schema.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.source_entity: StringThe name of the entity for which the synonym is being created (the source).
source_type: DatabaseEntityTypeThe type of the entity for which the synonym is being created (usually a table or a sequence).
custom_features: Option<Struct>Custom engine specific features.
Implementations§
Source§impl SynonymEntity
impl SynonymEntity
pub fn new() -> Self
Sourcepub fn set_source_entity<T: Into<String>>(self, v: T) -> Self
pub fn set_source_entity<T: Into<String>>(self, v: T) -> Self
Sets the value of source_entity.
Sourcepub fn set_source_type<T: Into<DatabaseEntityType>>(self, v: T) -> Self
pub fn set_source_type<T: Into<DatabaseEntityType>>(self, v: T) -> Self
Sets the value of source_type.
Sourcepub fn set_custom_features<T>(self, v: T) -> Self
pub fn set_custom_features<T>(self, v: T) -> Self
Sets the value of custom_features.
Sourcepub fn set_or_clear_custom_features<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_custom_features<T>(self, v: Option<T>) -> Self
Sets or clears the value of custom_features.
Trait Implementations§
Source§impl Clone for SynonymEntity
impl Clone for SynonymEntity
Source§fn clone(&self) -> SynonymEntity
fn clone(&self) -> SynonymEntity
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SynonymEntity
impl Debug for SynonymEntity
Source§impl Default for SynonymEntity
impl Default for SynonymEntity
Source§fn default() -> SynonymEntity
fn default() -> SynonymEntity
Returns the “default value” for a type. Read more
Source§impl Message for SynonymEntity
impl Message for SynonymEntity
Source§impl PartialEq for SynonymEntity
impl PartialEq for SynonymEntity
impl StructuralPartialEq for SynonymEntity
Auto Trait Implementations§
impl Freeze for SynonymEntity
impl RefUnwindSafe for SynonymEntity
impl Send for SynonymEntity
impl Sync for SynonymEntity
impl Unpin for SynonymEntity
impl UnwindSafe for SynonymEntity
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
Mutably borrows from an owned value. Read more