pub struct SerialRecord {
pub rule_key: String,
pub serial_no: String,
pub counter: u64,
pub cycle_value: String,
pub created_at: String,
}Expand description
单号生成记录
Fields§
§rule_key: String规则 key
serial_no: String生成的单号
counter: u64当前计数器值
cycle_value: String周期值(Daily→YYYYMMDD,NoCycle→空)
created_at: String生成时间(RFC3339)
Trait Implementations§
Source§impl Clone for SerialRecord
impl Clone for SerialRecord
Source§fn clone(&self) -> SerialRecord
fn clone(&self) -> SerialRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SerialRecord
impl Debug for SerialRecord
Source§impl<'de> Deserialize<'de> for SerialRecord
impl<'de> Deserialize<'de> for SerialRecord
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
Auto Trait Implementations§
impl Freeze for SerialRecord
impl RefUnwindSafe for SerialRecord
impl Send for SerialRecord
impl Sync for SerialRecord
impl Unpin for SerialRecord
impl UnsafeUnpin for SerialRecord
impl UnwindSafe for SerialRecord
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