Trait reproto_core::OptionEntry
[−]
[src]
pub trait OptionEntry {
fn name(&self) -> &str;
fn as_string(&self) -> Result<String>;
fn as_number(&self) -> Result<RpNumber>;
fn as_identifier(&self) -> Result<String>;
}
Required Methods
fn name(&self) -> &str
Get the name of the option.
fn as_string(&self) -> Result<String>
Get the value as a string.
fn as_number(&self) -> Result<RpNumber>
Get the value as an 32-bit unsigned integer.
fn as_identifier(&self) -> Result<String>
Get the value as an identifier.