Trait frodobuf_schema::model::HasAttributes[][src]

pub trait HasAttributes {
    fn attributes(&self) -> Attributes<'_>

Notable traits for Attributes<'a>

impl<'a> Iterator for Attributes<'a> type Item = &'a Attribute;
; fn get_attribute(&self, key: &str) -> Option<&Attribute> { ... } }
Expand description

trait for schema items that have attributes

Required methods

fn attributes(&self) -> Attributes<'_>

Notable traits for Attributes<'a>

impl<'a> Iterator for Attributes<'a> type Item = &'a Attribute;
[src]

returns an iterator over the item’s attributes

Provided methods

fn get_attribute(&self, key: &str) -> Option<&Attribute>[src]

Returns an attribute by name, or None if it is not found

Implementors

impl HasAttributes for Field[src]

fn attributes<'a>(&self) -> Attributes<'_>

Notable traits for Attributes<'a>

impl<'a> Iterator for Attributes<'a> type Item = &'a Attribute;
[src]

impl<'a> HasAttributes for Enumeration[src]

fn attributes(&self) -> Attributes<'_>

Notable traits for Attributes<'a>

impl<'a> Iterator for Attributes<'a> type Item = &'a Attribute;
[src]

impl<'a> HasAttributes for Message[src]

fn attributes(&self) -> Attributes<'_>

Notable traits for Attributes<'a>

impl<'a> Iterator for Attributes<'a> type Item = &'a Attribute;
[src]

impl<'a> HasAttributes for Method[src]

fn attributes(&self) -> Attributes<'_>

Notable traits for Attributes<'a>

impl<'a> Iterator for Attributes<'a> type Item = &'a Attribute;
[src]

impl<'a> HasAttributes for Schema[src]

fn attributes(&self) -> Attributes<'_>

Notable traits for Attributes<'a>

impl<'a> Iterator for Attributes<'a> type Item = &'a Attribute;
[src]

impl<'a> HasAttributes for Service[src]

fn attributes(&self) -> Attributes<'_>

Notable traits for Attributes<'a>

impl<'a> Iterator for Attributes<'a> type Item = &'a Attribute;
[src]