#[non_exhaustive]pub struct EntityDdl {
pub ddl_type: String,
pub entity: String,
pub ddl: String,
pub entity_type: DatabaseEntityType,
pub issue_id: Vec<String>,
/* private fields */
}Expand description
A single DDL statement for a specific entity
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.ddl_type: StringType of DDL (Create, Alter).
entity: StringThe name of the database entity the ddl refers to.
ddl: StringThe actual ddl code.
entity_type: DatabaseEntityTypeThe entity type (if the DDL is for a sub entity).
issue_id: Vec<String>EntityIssues found for this ddl.
Implementations§
Source§impl EntityDdl
impl EntityDdl
pub fn new() -> Self
Sourcepub fn set_ddl_type<T: Into<String>>(self, v: T) -> Self
pub fn set_ddl_type<T: Into<String>>(self, v: T) -> Self
Sets the value of ddl_type.
Sourcepub fn set_entity<T: Into<String>>(self, v: T) -> Self
pub fn set_entity<T: Into<String>>(self, v: T) -> Self
Sets the value of entity.
Sourcepub fn set_entity_type<T: Into<DatabaseEntityType>>(self, v: T) -> Self
pub fn set_entity_type<T: Into<DatabaseEntityType>>(self, v: T) -> Self
Sets the value of entity_type.
Sourcepub fn set_issue_id<T, V>(self, v: T) -> Self
pub fn set_issue_id<T, V>(self, v: T) -> Self
Sets the value of issue_id.
Trait Implementations§
impl StructuralPartialEq for EntityDdl
Auto Trait Implementations§
impl Freeze for EntityDdl
impl RefUnwindSafe for EntityDdl
impl Send for EntityDdl
impl Sync for EntityDdl
impl Unpin for EntityDdl
impl UnwindSafe for EntityDdl
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