pub struct Sequence {
pub schema: String,
pub name: String,
pub data_type: String,
pub start_value: i64,
pub min_value: i64,
pub max_value: i64,
pub increment: i64,
pub cycle: bool,
pub owned_by: Option<String>,
pub comment: Option<String>,
pub depends_on: Vec<DbObjectId>,
}Fields§
§schema: String§name: String§data_type: String§start_value: i64§min_value: i64§max_value: i64§increment: i64§cycle: bool§owned_by: Option<String>§comment: Option<String>§depends_on: Vec<DbObjectId>Implementations§
Trait Implementations§
Source§impl Attached for Sequence
impl Attached for Sequence
fn object_id(&self) -> DbObjectId
fn own_comment(&self) -> Option<String>
Source§fn sub_comments(&self) -> Vec<(AttrTarget, Option<String>)>
fn sub_comments(&self) -> Vec<(AttrTarget, Option<String>)>
Comments on sub-objects (table/view columns, composite type attributes).
Default: none — override for objects with commentable sub-objects.
Source§fn comment_targets(&self) -> Vec<(AttrTarget, Option<String>)>
fn comment_targets(&self) -> Vec<(AttrTarget, Option<String>)>
Every comment target this object owns: itself, then each sub-object.
This is the list a recreate must re-state and an in-place change diffs.
Source§impl DependsOn for Sequence
impl DependsOn for Sequence
fn id(&self) -> DbObjectId
fn depends_on(&self) -> &[DbObjectId]
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,
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