pub struct Sequence {
pub name: String,
pub data_type: Option<String>,
pub start: Option<i64>,
pub increment: Option<i64>,
pub min_value: Option<i64>,
pub max_value: Option<i64>,
pub cache: Option<i64>,
pub cycle: bool,
pub owned_by: Option<String>,
}Expand description
Standalone sequence (CREATE SEQUENCE)
Fields§
§name: String§data_type: Option<String>§start: Option<i64>§increment: Option<i64>§min_value: Option<i64>§max_value: Option<i64>§cache: Option<i64>§cycle: bool§owned_by: Option<String>Implementations§
Source§impl Sequence
impl Sequence
pub fn new(name: impl Into<String>) -> Self
pub fn start(self, v: i64) -> Self
pub fn increment(self, v: i64) -> Self
pub fn min_value(self, v: i64) -> Self
pub fn max_value(self, v: i64) -> Self
pub fn cache(self, v: i64) -> Self
pub fn cycle(self) -> Self
pub fn owned_by(self, col: impl Into<String>) -> Self
Trait Implementations§
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 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