[−][src]Enum dubp_documents::text_document_traits::TextDocumentFormat
Contains a document in full or compact format
Variants
Complete(D)Complete format (Allows to check the validity of the signature)
Compact(D::CompactTextDocument_)Format present in the blocks (does not always allow to verify the signature)
Methods
impl<D: TextDocument> TextDocumentFormat<D>[src]
pub fn to_compact_document(&self) -> D::CompactTextDocument_[src]
To compact document
Trait Implementations
impl<D: TextDocument> CompactTextDocument for TextDocumentFormat<D>[src]
fn as_compact_text(&self) -> String[src]
impl<D: Clone + TextDocument> Clone for TextDocumentFormat<D> where
D::CompactTextDocument_: Clone, [src]
D::CompactTextDocument_: Clone,
fn clone(&self) -> TextDocumentFormat<D>[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl<D: PartialEq + TextDocument> PartialEq<TextDocumentFormat<D>> for TextDocumentFormat<D> where
D::CompactTextDocument_: PartialEq, [src]
D::CompactTextDocument_: PartialEq,
fn eq(&self, other: &TextDocumentFormat<D>) -> bool[src]
fn ne(&self, other: &TextDocumentFormat<D>) -> bool[src]
impl<D: Eq + TextDocument> Eq for TextDocumentFormat<D> where
D::CompactTextDocument_: Eq, [src]
D::CompactTextDocument_: Eq,
impl<D: Debug + TextDocument> Debug for TextDocumentFormat<D> where
D::CompactTextDocument_: Debug, [src]
D::CompactTextDocument_: Debug,
impl<'de, D: TextDocument> Deserialize<'de> for TextDocumentFormat<D> where
D: Deserialize<'de>,
D::CompactTextDocument_: Deserialize<'de>, [src]
D: Deserialize<'de>,
D::CompactTextDocument_: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl<D: TextDocument> Serialize for TextDocumentFormat<D> where
D: Serialize,
D::CompactTextDocument_: Serialize, [src]
D: Serialize,
D::CompactTextDocument_: Serialize,
Auto Trait Implementations
impl<D> Sync for TextDocumentFormat<D> where
D: Sync,
<D as TextDocument>::CompactTextDocument_: Sync,
D: Sync,
<D as TextDocument>::CompactTextDocument_: Sync,
impl<D> Send for TextDocumentFormat<D> where
D: Send,
<D as TextDocument>::CompactTextDocument_: Send,
D: Send,
<D as TextDocument>::CompactTextDocument_: Send,
impl<D> Unpin for TextDocumentFormat<D> where
D: Unpin,
<D as TextDocument>::CompactTextDocument_: Unpin,
D: Unpin,
<D as TextDocument>::CompactTextDocument_: Unpin,
impl<D> RefUnwindSafe for TextDocumentFormat<D> where
D: RefUnwindSafe,
<D as TextDocument>::CompactTextDocument_: RefUnwindSafe,
D: RefUnwindSafe,
<D as TextDocument>::CompactTextDocument_: RefUnwindSafe,
impl<D> UnwindSafe for TextDocumentFormat<D> where
D: UnwindSafe,
<D as TextDocument>::CompactTextDocument_: UnwindSafe,
D: UnwindSafe,
<D as TextDocument>::CompactTextDocument_: UnwindSafe,
Blanket Implementations
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> DeserializeOwned for T where
T: Deserialize<'de>, [src]
T: Deserialize<'de>,