Trait re_sorbet::metadata::MetadataExt

source ·
pub trait MetadataExt {
    type Error;

    // Required methods
    fn missing_key_error(&self, key: &str) -> Self::Error;
    fn get_opt(&self, key: &str) -> Option<&str>;

    // Provided methods
    fn get_or_err(&self, key: &str) -> Result<&str, Self::Error> { ... }
    fn get_bool(&self, key: &str) -> bool { ... }
}
Expand description

Make it more ergonomic to work with arrow metadata.

Required Associated Types§

Required Methods§

source

fn missing_key_error(&self, key: &str) -> Self::Error

source

fn get_opt(&self, key: &str) -> Option<&str>

Provided Methods§

source

fn get_or_err(&self, key: &str) -> Result<&str, Self::Error>

source

fn get_bool(&self, key: &str) -> bool

Implementations on Foreign Types§

source§

impl MetadataExt for HashMap<String, String>

§

type Error = MissingMetadataKey

source§

fn missing_key_error(&self, key: &str) -> Self::Error

source§

fn get_opt(&self, key: &str) -> Option<&str>

source§

impl MetadataExt for Field

§

type Error = MissingFieldMetadata

source§

fn missing_key_error(&self, key: &str) -> Self::Error

source§

fn get_opt(&self, key: &str) -> Option<&str>

Implementors§