Skip to main content

LabelTarget

Trait LabelTarget 

Source
pub trait LabelTarget: Send + 'static {
    // Required methods
    fn label_id(&self, source: &str) -> Option<String>;
    fn set_label(
        &mut self,
        source: &str,
        label: Option<&str>,
    ) -> Result<(), ExtensionError>;
}
Expand description

Typed opt-in: implementations explicitly name the source fields and writable label fields. set_label must not modify database fields or ordering keys.

Required Methods§

Source

fn label_id(&self, source: &str) -> Option<String>

Source

fn set_label( &mut self, source: &str, label: Option<&str>, ) -> Result<(), ExtensionError>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§