pub struct SearchConfigId(/* private fields */);Expand description
Strongly-typed search configuration identifier.
Implementations§
Source§impl SearchConfigId
impl SearchConfigId
Sourcepub fn new() -> SearchConfigId
Available on crate feature std only.
pub fn new() -> SearchConfigId
std only.Create a new random ID (UUID v4).
Sourcepub const fn nil() -> SearchConfigId
pub const fn nil() -> SearchConfigId
Create a nil (all-zeros) ID.
Sourcepub const fn from_uuid(id: Uuid) -> SearchConfigId
pub const fn from_uuid(id: Uuid) -> SearchConfigId
Create from an existing Uuid.
Trait Implementations§
Source§impl AsRef<Uuid> for SearchConfigId
impl AsRef<Uuid> for SearchConfigId
Source§impl Clone for SearchConfigId
impl Clone for SearchConfigId
Source§fn clone(&self) -> SearchConfigId
fn clone(&self) -> SearchConfigId
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 SearchConfigId
Source§impl Debug for SearchConfigId
impl Debug for SearchConfigId
Source§impl Default for SearchConfigId
Available on crate feature std only.
impl Default for SearchConfigId
Available on crate feature
std only.Source§fn default() -> SearchConfigId
fn default() -> SearchConfigId
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SearchConfigId
impl<'de> Deserialize<'de> for SearchConfigId
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SearchConfigId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SearchConfigId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for SearchConfigId
impl Display for SearchConfigId
impl Eq for SearchConfigId
Source§impl From<SearchConfigId> for Uuid
impl From<SearchConfigId> for Uuid
Source§fn from(id: SearchConfigId) -> Uuid
fn from(id: SearchConfigId) -> Uuid
Converts to this type from the input type.
Source§impl From<Uuid> for SearchConfigId
impl From<Uuid> for SearchConfigId
Source§fn from(id: Uuid) -> SearchConfigId
fn from(id: Uuid) -> SearchConfigId
Converts to this type from the input type.
Source§impl FromStr for SearchConfigId
impl FromStr for SearchConfigId
Source§impl Hash for SearchConfigId
impl Hash for SearchConfigId
Source§impl Ord for SearchConfigId
impl Ord for SearchConfigId
Source§fn cmp(&self, other: &SearchConfigId) -> Ordering
fn cmp(&self, other: &SearchConfigId) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SearchConfigId
impl PartialEq for SearchConfigId
Source§impl PartialOrd for SearchConfigId
impl PartialOrd for SearchConfigId
Source§impl Serialize for SearchConfigId
impl Serialize for SearchConfigId
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 SearchConfigId
Auto Trait Implementations§
impl Freeze for SearchConfigId
impl RefUnwindSafe for SearchConfigId
impl Send for SearchConfigId
impl Sync for SearchConfigId
impl Unpin for SearchConfigId
impl UnsafeUnpin for SearchConfigId
impl UnwindSafe for SearchConfigId
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