pub struct LabelResolutionConfig {
pub resolvable_datatypes: Vec<String>,
pub config_keys: Vec<String>,
pub strict: bool,
}Expand description
Configuration for label resolution
Fields§
§resolvable_datatypes: Vec<String>Datatypes that should have their labels resolved
config_keys: Vec<String>Config keys to check for collection IDs
strict: boolIf true, return errors for unresolved labels. If false, pass through.
Implementations§
Source§impl LabelResolutionConfig
impl LabelResolutionConfig
Sourcepub fn new(
resolvable_datatypes: Vec<String>,
config_keys: Vec<String>,
strict: bool,
) -> Self
pub fn new( resolvable_datatypes: Vec<String>, config_keys: Vec<String>, strict: bool, ) -> Self
Create a new config with custom datatypes and keys
Sourcepub fn with_additional_datatypes(self, datatypes: &[&str]) -> Self
pub fn with_additional_datatypes(self, datatypes: &[&str]) -> Self
Add additional resolvable datatypes
Sourcepub fn with_additional_config_keys(self, keys: &[&str]) -> Self
pub fn with_additional_config_keys(self, keys: &[&str]) -> Self
Add additional config keys
Sourcepub fn with_strict(self, strict: bool) -> Self
pub fn with_strict(self, strict: bool) -> Self
Set strict mode
Trait Implementations§
Source§impl Clone for LabelResolutionConfig
impl Clone for LabelResolutionConfig
Source§fn clone(&self) -> LabelResolutionConfig
fn clone(&self) -> LabelResolutionConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LabelResolutionConfig
impl Debug for LabelResolutionConfig
Auto Trait Implementations§
impl Freeze for LabelResolutionConfig
impl RefUnwindSafe for LabelResolutionConfig
impl Send for LabelResolutionConfig
impl Sync for LabelResolutionConfig
impl Unpin for LabelResolutionConfig
impl UnsafeUnpin for LabelResolutionConfig
impl UnwindSafe for LabelResolutionConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more