[][src]Struct gears::structure::common::DocumentHeader

pub struct DocumentHeader {
    pub id: Uuid,
    pub name: String,
    pub doctype: String,
    pub doctype_version: i64,
    pub version: i64,
}

Fields

id: Uuidname: Stringdoctype: Stringdoctype_version: i64version: i64

Methods

impl DocumentHeader[src]

pub fn to_string(&self) -> String[src]

Return a string representation of the DocumentHeader

pub fn to_json(&self) -> String[src]

Return an indented JSON representation of the DocumentHeader

partof: SPC-serialization-json

pub fn to_json_compact(&self) -> String[src]

Return a compact JSON representation of the DocumentHeader

partof: SPC-serialization-json

pub fn from_json(s: &str) -> Result<Self, ModelLoadError>[src]

Initialize a DocumentHeader from a JSON string

partof: SPC-serialization-json

pub fn to_yaml(&self) -> String[src]

Return a YAML representation of the DocumentHeader

partof: SPC-serialization-yaml

pub fn from_yaml(s: &str) -> Result<Self, ModelLoadError>[src]

Initialize a DocumentHeader from a JSON string

partof: SPC-serialization-yaml

Trait Implementations

impl PartialEq<DocumentHeader> for DocumentHeader[src]

impl Clone for DocumentHeader[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for DocumentHeader[src]

impl Debug for DocumentHeader[src]

impl Serialize for DocumentHeader[src]

impl<'de> Deserialize<'de> for DocumentHeader[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]