pub struct Sequence {
pub schema: Cow<'static, str>,
pub name: Cow<'static, str>,
pub increment_by: Option<Cow<'static, str>>,
pub min_value: Option<Cow<'static, str>>,
pub max_value: Option<Cow<'static, str>>,
pub start_with: Option<Cow<'static, str>>,
pub cache_size: Option<i32>,
pub cycle: Option<bool>,
}Available on crate feature
std only.Expand description
Runtime sequence entity for serde serialization.
Fields§
§schema: Cow<'static, str>Schema name
name: Cow<'static, str>Sequence name
increment_by: Option<Cow<'static, str>>Increment value
min_value: Option<Cow<'static, str>>Minimum value
max_value: Option<Cow<'static, str>>Maximum value
start_with: Option<Cow<'static, str>>Start value
cache_size: Option<i32>Cache size
cycle: Option<bool>Cycle flag
Implementations§
Source§impl Sequence
impl Sequence
Source§impl Sequence
impl Sequence
Sourcepub fn create_sequence_sql(&self) -> String
Available on crate features alloc or std only.
pub fn create_sequence_sql(&self) -> String
alloc or std only.Generate CREATE SEQUENCE SQL
Sourcepub fn drop_sequence_sql(&self) -> String
Available on crate features alloc or std only.
pub fn drop_sequence_sql(&self) -> String
alloc or std only.Generate DROP SEQUENCE SQL
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Sequence
impl<'de> Deserialize<'de> for Sequence
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Sequence, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Sequence, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Sequence
Source§impl From<SequenceDef> for Sequence
impl From<SequenceDef> for Sequence
Source§fn from(def: SequenceDef) -> Sequence
fn from(def: SequenceDef) -> Sequence
Converts to this type from the input type.
Source§impl Serialize for Sequence
impl Serialize for Sequence
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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