Struct grpcio::MetadataBuilder [−][src]
pub struct MetadataBuilder { /* fields omitted */ }
Expand description
Builder for immutable Metadata.
Implementations
impl MetadataBuilder
[src]
impl MetadataBuilder
[src]pub fn new() -> MetadataBuilder
[src]
pub fn new() -> MetadataBuilder
[src]Create a builder with empty initial capacity.
pub fn with_capacity(cap: usize) -> MetadataBuilder
[src]
pub fn with_capacity(cap: usize) -> MetadataBuilder
[src]Create a builder with the given value.
pub fn add_str(
&mut self,
key: &str,
value: &str
) -> Result<&mut MetadataBuilder>
[src]
pub fn add_str(
&mut self,
key: &str,
value: &str
) -> Result<&mut MetadataBuilder>
[src]Add a metadata holding an ASCII value.
key
must not use suffix (-bin) indicating a binary valued metadata entry.