Struct rincon_session::client::NewDocument
[−]
[src]
pub struct NewDocument<T> { /* fields omitted */ }
Methods
impl<T> NewDocument<T>
[src]
pub fn from_content(content: T) -> NewDocument<T>
[src]
pub fn with_key<K>(self, key: K) -> NewDocument<T> where
K: Into<Option<DocumentKey>>,
[src]
K: Into<Option<DocumentKey>>,
pub fn key(&self) -> Option<&DocumentKey>
[src]
ⓘImportant traits for &'a mut Wpub fn content(&self) -> &T
[src]
ⓘImportant traits for &'a mut W
Trait Implementations
impl<T> PartialEq<NewDocument<T>> for NewDocument<T> where
T: PartialEq<T>,
[src]
T: PartialEq<T>,
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> Serialize for NewDocument<T> where
T: Serialize + Debug,
[src]
T: Serialize + Debug,
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<T> From<T> for NewDocument<T>
[src]
fn from(content: T) -> NewDocument<T>
[src]
Performs the conversion.
impl<T> Clone for NewDocument<T> where
T: Clone,
[src]
T: Clone,
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> Debug for NewDocument<T> where
T: Debug,
[src]
T: 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,