pub struct SequenceDeclaration {
pub data_type: Option<ColumnType>,
pub increment: Option<SequenceOptionValue>,
pub cycle: Option<bool>,
pub max_value: Option<SequenceOptionValue>,
pub min_value: Option<SequenceOptionValue>,
pub start: Option<SequenceOptionValue>,
pub restart: Option<SequenceOptionValue>,
pub cache: Option<SequenceOptionValue>,
pub owned_by: Option<Vec<String>>,
}Expand description
The options a CREATE SEQUENCE, or the declaration of an identity column, writes, kept as written. PostgreSQL reads their values and derives the omitted ones when it creates the sequence, in an order of its own.
Fields§
§data_type: Option<ColumnType>AS type.
increment: Option<SequenceOptionValue>INCREMENT [BY] value.
cycle: Option<bool>CYCLE or NO CYCLE.
max_value: Option<SequenceOptionValue>MAXVALUE value, or NO MAXVALUE as an absent value.
min_value: Option<SequenceOptionValue>MINVALUE value, or NO MINVALUE as an absent value.
start: Option<SequenceOptionValue>START [WITH] value.
restart: Option<SequenceOptionValue>RESTART [WITH value], a bare RESTART as an absent value: the value the first nextval returns, instead of the start.
cache: Option<SequenceOptionValue>CACHE value.
owned_by: Option<Vec<String>>OWNED BY, as the written name: NONE, or a relation and one of its columns.
Trait Implementations§
Source§impl Clone for SequenceDeclaration
impl Clone for SequenceDeclaration
Source§impl Debug for SequenceDeclaration
impl Debug for SequenceDeclaration
Source§impl Default for SequenceDeclaration
impl Default for SequenceDeclaration
Source§impl<'de> Deserialize<'de> for SequenceDeclaration
impl<'de> Deserialize<'de> for SequenceDeclaration
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
impl Eq for SequenceDeclaration
Source§impl PartialEq for SequenceDeclaration
impl PartialEq for SequenceDeclaration
Source§impl Serialize for SequenceDeclaration
impl Serialize for SequenceDeclaration
impl StructuralPartialEq for SequenceDeclaration
Auto Trait Implementations§
impl Freeze for SequenceDeclaration
impl RefUnwindSafe for SequenceDeclaration
impl Send for SequenceDeclaration
impl Sync for SequenceDeclaration
impl Unpin for SequenceDeclaration
impl UnsafeUnpin for SequenceDeclaration
impl UnwindSafe for SequenceDeclaration
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
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