[][src]Struct npm_package_json::Person

pub struct Person {
    pub name: String,
    pub email: Option<String>,
    pub url: Option<String>,
}

A person.

Fields

name: String

The name of a person.

email: Option<String>

The email of a person.

url: Option<String>

The homepage of the person.

Implementations

impl Person[src]

pub fn new() -> Self[src]

Creates a default person.

pub fn with_name(name: String) -> Self[src]

Creates a person with a given name.

pub fn with(name: String, email: Option<String>, url: Option<String>) -> Self[src]

Creates a person with the given values.

Trait Implementations

impl Clone for Person[src]

impl Debug for Person[src]

impl Default for Person[src]

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

impl Display for Person[src]

impl Eq for Person[src]

impl PartialEq<Person> for Person[src]

impl Serialize for Person[src]

impl StructuralEq for Person[src]

impl StructuralPartialEq for Person[src]

Auto Trait Implementations

impl RefUnwindSafe for Person

impl Send for Person

impl Sync for Person

impl Unpin for Person

impl UnwindSafe for Person

Blanket Implementations

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

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

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

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

impl<T> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.