Struct rincon_session::client::DocumentKey
[−]
[src]
pub struct DocumentKey(_);
Methods
impl DocumentKey
[src]
pub fn new<K>(document_key: K) -> DocumentKey where
K: Into<String>,
[src]
K: Into<String>,
pub fn from_string(value: String) -> Result<DocumentKey, String>
[src]
pub fn unwrap(self) -> String
[src]
pub fn as_str(&self) -> &str
[src]
Trait Implementations
impl Serialize for DocumentKey
[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<'de> Deserialize<'de> for DocumentKey
[src]
fn deserialize<D>(
deserializer: D
) -> Result<DocumentKey, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
[src]
deserializer: D
) -> Result<DocumentKey, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl FromStr for DocumentKey
[src]
type Err = String
The associated error which can be returned from parsing.
fn from_str(value: &str) -> Result<DocumentKey, String>
[src]
Parses a string s
to return a value of this type. Read more
impl Hash for DocumentKey
[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 DocumentKey
[src]
impl PartialEq<DocumentKey> for DocumentKey
[src]
fn eq(&self, __arg_0: &DocumentKey) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &DocumentKey) -> bool
[src]
This method tests for !=
.
impl From<DocumentId> for DocumentKey
[src]
fn from(document_id: DocumentId) -> DocumentKey
[src]
Performs the conversion.
impl From<DocumentKey> for DocumentIdOption
[src]
fn from(document_key: DocumentKey) -> DocumentIdOption
[src]
Performs the conversion.
impl From<DocumentKey> for DocumentSelector
[src]
fn from(document_key: DocumentKey) -> DocumentSelector
[src]
Performs the conversion.
impl Clone for DocumentKey
[src]
fn clone(&self) -> DocumentKey
[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