Struct ironoxide::document::DocumentName
source · pub struct DocumentName(/* private fields */);
Expand description
Name of a document.
The name should be human-readable and does not have to be unique.
It can be validated from a String
or &str
using DocumentName::try_from
.
Requirements
- Must be between 1 and 100 characters long.
Implementations§
Trait Implementations§
source§impl Clone for DocumentName
impl Clone for DocumentName
source§fn clone(&self) -> DocumentName
fn clone(&self) -> DocumentName
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 DocumentName
impl Debug for DocumentName
source§impl<'de> Deserialize<'de> for DocumentName
impl<'de> Deserialize<'de> for DocumentName
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 DocumentName
impl Hash for DocumentName
source§impl PartialEq for DocumentName
impl PartialEq for DocumentName
source§fn eq(&self, other: &DocumentName) -> bool
fn eq(&self, other: &DocumentName) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for DocumentName
impl Serialize for DocumentName
source§impl TryFrom<&str> for DocumentName
impl TryFrom<&str> for DocumentName
source§impl TryFrom<String> for DocumentName
impl TryFrom<String> for DocumentName
impl Eq for DocumentName
impl StructuralEq for DocumentName
impl StructuralPartialEq for DocumentName
Auto Trait Implementations§
impl RefUnwindSafe for DocumentName
impl Send for DocumentName
impl Sync for DocumentName
impl Unpin for DocumentName
impl UnwindSafe for DocumentName
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