Struct rincon_client::document::types::NewDocument
[−]
[src]
pub struct NewDocument<T> { /* fields omitted */ }
Methods
impl<T> NewDocument<T>
[src]
pub fn from_content(content: T) -> Self
[src]
pub fn with_key<K>(self, key: K) -> Self where
K: Into<Option<DocumentKey>>,
[src]
K: Into<Option<DocumentKey>>,
pub fn key(&self) -> Option<&DocumentKey>
[src]
pub fn content(&self) -> &T
[src]
Trait Implementations
impl<T: Debug> Debug for NewDocument<T>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<T: Clone> Clone for NewDocument<T>
[src]
fn clone(&self) -> NewDocument<T>
[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
impl<T: PartialEq> PartialEq for NewDocument<T>
[src]
fn eq(&self, __arg_0: &NewDocument<T>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &NewDocument<T>) -> bool
[src]
This method tests for !=
.
impl<T> From<T> for NewDocument<T>
[src]
impl<T> Serialize for NewDocument<T> where
T: Serialize + Debug,
[src]
T: Serialize + Debug,
Auto Trait Implementations
impl<T> Send for NewDocument<T> where
T: Send,
T: Send,
impl<T> Sync for NewDocument<T> where
T: Sync,
T: Sync,