pub struct Sequence {
pub qname: QualifiedName,
pub data_type: ColumnType,
pub start: i64,
pub increment: i64,
pub min_value: Option<i64>,
pub max_value: Option<i64>,
pub cache: i64,
pub cycle: bool,
pub owned_by: Option<SequenceOwner>,
pub comment: Option<String>,
pub owner: Option<Identifier>,
pub grants: Vec<Grant>,
}Expand description
A Postgres sequence.
Fields§
§qname: QualifiedNameSchema-qualified sequence name.
data_type: ColumnTypeSequence data type (always one of SmallInt, Integer, BigInt).
start: i64Start value.
increment: i64Increment.
min_value: Option<i64>Min value (None = type’s minimum).
max_value: Option<i64>Max value (None = type’s maximum).
cache: i64Cache size.
cycle: boolWhether the sequence cycles.
owned_by: Option<SequenceOwner>Owning column, if any (e.g., from SERIAL / IDENTITY).
comment: Option<String>Optional comment.
owner: Option<Identifier>Object owner. None = unmanaged (the differ ignores ownership).
Some(role) = managed: diff emits ALTER SEQUENCE ... OWNER TO role.
grants: Vec<Grant>Grants on this object. Empty = no grants. Canonicalized.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Sequence
impl<'de> Deserialize<'de> for Sequence
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 Sequence
Source§impl Equiv for Sequence
impl Equiv for Sequence
Source§fn differences(&self, other: &Self) -> Vec<Difference>
fn differences(&self, other: &Self) -> Vec<Difference>
List the differences between
self and other. Empty list = equivalent.Source§fn canonical_eq(&self, other: &Self) -> bool
fn canonical_eq(&self, other: &Self) -> bool
Convenience:
true iff self.differences(other).is_empty().impl StructuralPartialEq for Sequence
Auto Trait Implementations§
impl Freeze for Sequence
impl RefUnwindSafe for Sequence
impl Send for Sequence
impl Sync for Sequence
impl Unpin for Sequence
impl UnsafeUnpin for Sequence
impl UnwindSafe for Sequence
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>,
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