Struct rincon_session::client::DocumentId
[−]
[src]
pub struct DocumentId { /* fields omitted */ }
Methods
impl DocumentId
[src]
pub fn new<C, K>(collection_name: C, document_key: K) -> DocumentId where
C: Into<String>,
K: Into<String>,
[src]
C: Into<String>,
K: Into<String>,
pub fn unwrap(self) -> (String, String)
[src]
pub fn into_string(self) -> String
[src]
pub fn to_string(&self) -> String
[src]
pub fn collection_name(&self) -> &str
[src]
pub fn document_key(&self) -> &str
[src]
Trait Implementations
impl<'de> Deserialize<'de> for DocumentId
[src]
fn deserialize<D>(
deserializer: D
) -> Result<DocumentId, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
[src]
deserializer: D
) -> Result<DocumentId, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl FromStr for DocumentId
[src]
type Err = String
The associated error which can be returned from parsing.
fn from_str(value: &str) -> Result<DocumentId, String>
[src]
Parses a string s
to return a value of this type. Read more
impl Hash for DocumentId
[src]
fn hash<__H>(&self, __arg_0: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Eq for DocumentId
[src]
impl PartialEq<DocumentId> for DocumentId
[src]
fn eq(&self, __arg_0: &DocumentId) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &DocumentId) -> bool
[src]
This method tests for !=
.
impl Serialize for DocumentId
[src]
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
[src]
&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 From<DocumentId> for DocumentSelector
[src]
fn from(document_id: DocumentId) -> DocumentSelector
[src]
Performs the conversion.
impl From<DocumentId> for DocumentKey
[src]
fn from(document_id: DocumentId) -> DocumentKey
[src]
Performs the conversion.
impl From<DocumentId> for DocumentIdOption
[src]
fn from(document_id: DocumentId) -> DocumentIdOption
[src]
Performs the conversion.
impl Clone for DocumentId
[src]
fn clone(&self) -> DocumentId
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more