pub struct Publication {
    pub name: Option<String>,
    pub publisher: Option<String>,
    pub release_date: Option<String>,
    pub url: Option<String>,
    pub summary: Option<String>,
}
Expand description

Specify your publications through your career

Fields§

§name: Option<String>

e.g. The World Wide Web

§publisher: Option<String>

e.g. IEEE, Computer Magazine

§release_date: Option<String>§url: Option<String>

e.g. http://www.computer.org.example.com/csdl/mags/co/1996/10/rx069-abs.html

§summary: Option<String>

Short summary of publication. e.g. Discussion of the World Wide Web, HTTP, HTML.

Trait Implementations§

source§

impl Clone for Publication

source§

fn clone(&self) -> Publication

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Publication

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Publication

source§

fn default() -> Publication

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for Publicationwhere Publication: Default,

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for Publication

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Validate for Publication

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> FromJsonReader for Twhere T: DeserializeOwned + Validate,

source§

fn from_json_reader<R>(reader: R) -> Result<T, Error<Error>>where R: Read,

Convert from json reader. Read more
source§

impl<'de, T> FromJsonSlice<'de> for Twhere T: Deserialize<'de> + Validate,

source§

fn from_json_slice(slice: &'de [u8]) -> Result<T, Error<Error>>

Convert from json slice. Read more
source§

impl<'de, T> FromJsonStr<'de> for Twhere T: Deserialize<'de> + Validate,

source§

fn from_json_str(str: &'de str) -> Result<T, Error<Error>>

Convert from json str. Read more
source§

impl<T> FromJsonValue for Twhere T: DeserializeOwned + Validate,

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToJsonString for Twhere T: Serialize + Validate,

source§

fn to_json_string(&self) -> Result<String, Error>

Convert to json string. Read more
source§

fn to_json_string_pretty(&self) -> Result<String, Error>

Convert to json pretty string. Read more
source§

impl<T> ToJsonValue for Twhere T: Serialize + Validate,

source§

fn to_json_value(&self) -> Result<Value, Error>

Convert to json string. Read more
source§

impl<T> ToJsonWriter for Twhere T: Serialize + Validate,

source§

fn to_json_writer<W>(&self, writer: W) -> Result<(), Error>where W: Write,

Convert to json writer. Read more
source§

fn to_json_writer_pretty<W>(&self, writer: W) -> Result<(), Error>where W: Write,

Convert to pretty json writer. Read more
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,