Struct tonic_build::Attributes [−][src]
pub struct Attributes { /* fields omitted */ }
Expand description
Attributes that will be added to mod
and struct
items.
Implementations
Add an attribute that will be added to mod
items matching the given pattern.
Examples
let mut attributes = Attributes::default();
attributes.push_mod("my.proto.package", r#"#[cfg(feature = "server")]"#);
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for Attributes
impl Send for Attributes
impl Sync for Attributes
impl Unpin for Attributes
impl UnwindSafe for Attributes
Blanket Implementations
Mutably borrows from an owned value. Read more