Struct reproto_core::RpField [] [src]

pub struct RpField {
    pub modifier: RpModifier,
    pub safe_ident: Option<String>,
    pub ident: String,
    pub comment: Vec<String>,
    pub ty: RpType,
    pub field_as: Option<String>,
}

Fields

Modifier of the field.

Mangled identifier, taking target-specific keywords into account.

Original identifier used to specify the field.

Field comments.

Alias of field in JSON.

Methods

impl RpField
[src]

[src]

[src]

[src]

Get the keyword-safe identifier.

This will be the identifier escaped to avoid any target-language keywords.

[src]

Get the original identifier of the field.

[src]

Get the JSON name of the field, if it differs from ident.

TODO: Return Option, currently returns ident. This is a better indication whether 'renaming' should occur.

[src]

Trait Implementations

impl Debug for RpField
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for RpField
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for RpField
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for RpField
[src]

Auto Trait Implementations

impl Send for RpField

impl Sync for RpField