Struct prost_serde::BuildOption[][src]

pub struct BuildOption {
    pub scope: String,
    pub description: String,
    pub attr: String,
    pub paths: Vec<String>,
}

Fields

scope: String

scope of the attribute

description: String

description of the option

attr: String

extra attribute to put on generated data structure, for example: #[derive(Serialize, Deserialize)]

paths: Vec<String>

a list of paths you want to add the attribute

Trait Implementations

Formats the value using the given formatter. Read more

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

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.