#[non_exhaustive]pub struct EntityIssue {
pub id: String,
pub type: IssueType,
pub severity: IssueSeverity,
pub message: String,
pub code: String,
pub ddl: Option<String>,
pub position: Option<Position>,
pub entity_type: DatabaseEntityType,
/* private fields */
}Expand description
Issue related to the 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.id: StringUnique Issue ID.
type: IssueTypeThe type of the issue.
severity: IssueSeveritySeverity of the issue
message: StringIssue detailed message
code: StringError/Warning code
ddl: Option<String>The ddl which caused the issue, if relevant.
position: Option<Position>The position of the issue found, if relevant.
entity_type: DatabaseEntityTypeThe entity type (if the DDL is for a sub entity).
Implementations§
Source§impl EntityIssue
impl EntityIssue
pub fn new() -> Self
Sourcepub fn set_severity<T: Into<IssueSeverity>>(self, v: T) -> Self
pub fn set_severity<T: Into<IssueSeverity>>(self, v: T) -> Self
Sets the value of severity.
Sourcepub fn set_message<T: Into<String>>(self, v: T) -> Self
pub fn set_message<T: Into<String>>(self, v: T) -> Self
Sets the value of message.
Sourcepub fn set_or_clear_ddl<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_ddl<T>(self, v: Option<T>) -> Self
Sets or clears the value of ddl.
Sourcepub fn set_position<T>(self, v: T) -> Self
pub fn set_position<T>(self, v: T) -> Self
Sets the value of position.
Sourcepub fn set_or_clear_position<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_position<T>(self, v: Option<T>) -> Self
Sets or clears the value of position.
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.
Trait Implementations§
Source§impl Clone for EntityIssue
impl Clone for EntityIssue
Source§fn clone(&self) -> EntityIssue
fn clone(&self) -> EntityIssue
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 EntityIssue
impl Debug for EntityIssue
Source§impl Default for EntityIssue
impl Default for EntityIssue
Source§fn default() -> EntityIssue
fn default() -> EntityIssue
Returns the “default value” for a type. Read more
Source§impl Message for EntityIssue
impl Message for EntityIssue
Source§impl PartialEq for EntityIssue
impl PartialEq for EntityIssue
impl StructuralPartialEq for EntityIssue
Auto Trait Implementations§
impl Freeze for EntityIssue
impl RefUnwindSafe for EntityIssue
impl Send for EntityIssue
impl Sync for EntityIssue
impl Unpin for EntityIssue
impl UnwindSafe for EntityIssue
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