pub enum IdMode {
Centralized,
Distributed {
node_id: u32,
},
}Expand description
The operating mode for ID generation.
Variants§
Centralized
Centralized mode: IDs are {TYPE}-{SEQ} (e.g., FR-001).
Used when a central database is always available.
Distributed
Distributed mode: IDs are {TYPE}-{NODEID}-{SEQ} (e.g., FR-7-048).
Used for offline-capable, multi-node deployments.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for IdMode
impl<'de> Deserialize<'de> for IdMode
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<IdMode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<IdMode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for IdMode
impl Serialize for IdMode
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 Eq for IdMode
impl StructuralPartialEq for IdMode
Auto Trait Implementations§
impl Freeze for IdMode
impl RefUnwindSafe for IdMode
impl Send for IdMode
impl Sync for IdMode
impl Unpin for IdMode
impl UnsafeUnpin for IdMode
impl UnwindSafe for IdMode
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.