pub struct PostgresUniqueConstraint {
pub name: String,
pub unique_index_name: String,
pub comment: Option<String>,
pub object_id: ObjectId,
}Fields§
§name: String§unique_index_name: String§comment: Option<String>§object_id: ObjectIdImplementations§
Source§impl PostgresUniqueConstraint
impl PostgresUniqueConstraint
pub fn get_create_statement( &self, table: &PostgresTable, schema: &PostgresSchema, quoter: &IdentifierQuoter, ) -> String
Trait Implementations§
Source§impl Clone for PostgresUniqueConstraint
impl Clone for PostgresUniqueConstraint
Source§fn clone(&self) -> PostgresUniqueConstraint
fn clone(&self) -> PostgresUniqueConstraint
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 PostgresUniqueConstraint
impl Debug for PostgresUniqueConstraint
Source§impl Default for PostgresUniqueConstraint
impl Default for PostgresUniqueConstraint
Source§fn default() -> PostgresUniqueConstraint
fn default() -> PostgresUniqueConstraint
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PostgresUniqueConstraint
impl<'de> Deserialize<'de> for PostgresUniqueConstraint
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<PostgresUniqueConstraint> for PostgresConstraint
impl From<PostgresUniqueConstraint> for PostgresConstraint
Source§fn from(value: PostgresUniqueConstraint) -> Self
fn from(value: PostgresUniqueConstraint) -> Self
Converts to this type from the input type.
Source§impl Ord for PostgresUniqueConstraint
impl Ord for PostgresUniqueConstraint
Source§impl PartialEq for PostgresUniqueConstraint
impl PartialEq for PostgresUniqueConstraint
Source§impl PartialOrd for PostgresUniqueConstraint
impl PartialOrd for PostgresUniqueConstraint
Source§impl Serialize for PostgresUniqueConstraint
impl Serialize for PostgresUniqueConstraint
impl Eq for PostgresUniqueConstraint
impl StructuralPartialEq for PostgresUniqueConstraint
Auto Trait Implementations§
impl Freeze for PostgresUniqueConstraint
impl RefUnwindSafe for PostgresUniqueConstraint
impl Send for PostgresUniqueConstraint
impl Sync for PostgresUniqueConstraint
impl Unpin for PostgresUniqueConstraint
impl UnwindSafe for PostgresUniqueConstraint
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more