Struct ironoxide::document::DocumentId
source · pub struct DocumentId(/* private fields */);
Expand description
ID of a document.
The ID can be validated from a String
or &str
using DocumentId::try_from
.
Requirements
- Must be unique within the document’s segment.
- Must match the regex
^[a-zA-Z0-9_.$#|@/:;=+'-]+$
.
Implementations§
Trait Implementations§
source§impl Clone for DocumentId
impl Clone for DocumentId
source§fn clone(&self) -> DocumentId
fn clone(&self) -> DocumentId
Returns a copy of the value. Read more
1.0.0 · 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 DocumentId
impl Debug for DocumentId
source§impl<'de> Deserialize<'de> for DocumentId
impl<'de> Deserialize<'de> for DocumentId
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
source§impl Hash for DocumentId
impl Hash for DocumentId
source§impl PartialEq for DocumentId
impl PartialEq for DocumentId
source§fn eq(&self, other: &DocumentId) -> bool
fn eq(&self, other: &DocumentId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for DocumentId
impl Serialize for DocumentId
source§impl TryFrom<&str> for DocumentId
impl TryFrom<&str> for DocumentId
source§impl TryFrom<String> for DocumentId
impl TryFrom<String> for DocumentId
impl Eq for DocumentId
impl StructuralEq for DocumentId
impl StructuralPartialEq for DocumentId
Auto Trait Implementations§
impl RefUnwindSafe for DocumentId
impl Send for DocumentId
impl Sync for DocumentId
impl Unpin for DocumentId
impl UnwindSafe for DocumentId
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more