pub enum ObjectIdForm {
Generated,
Custom,
}Expand description
Which strings count as an objectId inside a CLP.
SchemaController.js:726-731. Not a bool at the call site, because a bare true there
reads as “valid” rather than as “custom object ids are enabled”.
Variants§
Generated
^[a-zA-Z0-9]{1,}$, the default.
Custom
^.{1,}$, when allowCustomObjectId is on. Any non-empty string.
Trait Implementations§
Source§impl Clone for ObjectIdForm
impl Clone for ObjectIdForm
Source§fn clone(&self) -> ObjectIdForm
fn clone(&self) -> ObjectIdForm
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 moreimpl Copy for ObjectIdForm
Source§impl Debug for ObjectIdForm
impl Debug for ObjectIdForm
impl Eq for ObjectIdForm
Source§impl PartialEq for ObjectIdForm
impl PartialEq for ObjectIdForm
impl StructuralPartialEq for ObjectIdForm
Auto Trait Implementations§
impl Freeze for ObjectIdForm
impl RefUnwindSafe for ObjectIdForm
impl Send for ObjectIdForm
impl Sync for ObjectIdForm
impl Unpin for ObjectIdForm
impl UnsafeUnpin for ObjectIdForm
impl UnwindSafe for ObjectIdForm
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.