pub struct PrimaryKey {
pub name: String,
pub fields: Vec<String>,
}Expand description
PrimaryKey generator
Fields§
§name: String§fields: Vec<String>Trait Implementations§
Source§impl DBObject for PrimaryKey
impl DBObject for PrimaryKey
fn to_sql(&self, _type_writer: &dyn TypeWriter) -> String
fn is_top_level(&self) -> bool
fn top_level_to_sql( &self, _type_writer: &dyn TypeWriter, _delayed: &Vec<&Box<&dyn DBObject>>, ) -> String
Source§impl Debug for PrimaryKey
impl Debug for PrimaryKey
Source§impl<'de> Deserialize<'de> for PrimaryKey
impl<'de> Deserialize<'de> for PrimaryKey
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
Auto Trait Implementations§
impl Freeze for PrimaryKey
impl RefUnwindSafe for PrimaryKey
impl Send for PrimaryKey
impl Sync for PrimaryKey
impl Unpin for PrimaryKey
impl UnwindSafe for PrimaryKey
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