[][src]Struct tsproto_structs::book::Property

pub struct Property {
    pub name: String,
    pub type_s: String,
    pub doc: Option<String>,
    pub get: Option<bool>,
    pub set: Option<bool>,
    pub opt: bool,
    pub modifier: Option<String>,
    pub key: Option<String>,
}

Fields

name: String

The name of this property (in PascalCase) which can be called from rust when generated.

type_s: String

The rust declaration type.

doc: Option<String>get: Option<bool>set: Option<bool>opt: boolmodifier: Option<String>key: Option<String>

Methods

impl Property[src]

pub fn get_get(&self, struc: &Struct) -> bool[src]

pub fn get_set(&self, struc: &Struct) -> bool[src]

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

Trait Implementations

impl Clone for Property[src]

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

Performs copy-assignment from source. Read more

impl<'a> From<&'a Property> for PropId<'a>[src]

impl Debug for Property[src]

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

Auto Trait Implementations

impl Send for Property

impl Sync for Property

Blanket Implementations

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

type Owned = T

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

impl<T> From for T[src]

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

type Error = Infallible

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

The type returned in the event of a conversion error.

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