pub struct InstrumentProviderConfig {
pub load_all: bool,
pub load_ids: Option<Vec<String>>,
pub filters: HashMap<String, Value>,
pub filter_callable: Option<String>,
pub log_warnings: bool,
}Expand description
Configuration for instrument providers.
Fields§
§load_all: boolWhether to load all instruments on startup.
load_ids: Option<Vec<String>>Specific instrument IDs to load on startup (if load_all is false).
filters: HashMap<String, Value>Venue-specific instrument loading filters.
filter_callable: Option<String>A fully qualified path to a callable for custom instrument filtering.
log_warnings: boolIf parser warnings should be logged.
Implementations§
Source§impl InstrumentProviderConfig
impl InstrumentProviderConfig
Sourcepub fn builder() -> InstrumentProviderConfigBuilder
pub fn builder() -> InstrumentProviderConfigBuilder
Create an instance of InstrumentProviderConfig using the builder syntax
Trait Implementations§
Source§impl Clone for InstrumentProviderConfig
impl Clone for InstrumentProviderConfig
Source§fn clone(&self) -> InstrumentProviderConfig
fn clone(&self) -> InstrumentProviderConfig
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 InstrumentProviderConfig
impl Debug for InstrumentProviderConfig
Source§impl Default for InstrumentProviderConfig
impl Default for InstrumentProviderConfig
Source§impl<'de> Deserialize<'de> for InstrumentProviderConfigwhere
InstrumentProviderConfig: Default,
impl<'de> Deserialize<'de> for InstrumentProviderConfigwhere
InstrumentProviderConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for InstrumentProviderConfig
impl PartialEq for InstrumentProviderConfig
Source§impl Serialize for InstrumentProviderConfig
impl Serialize for InstrumentProviderConfig
impl StructuralPartialEq for InstrumentProviderConfig
Auto Trait Implementations§
impl Freeze for InstrumentProviderConfig
impl RefUnwindSafe for InstrumentProviderConfig
impl Send for InstrumentProviderConfig
impl Sync for InstrumentProviderConfig
impl Unpin for InstrumentProviderConfig
impl UnsafeUnpin for InstrumentProviderConfig
impl UnwindSafe for InstrumentProviderConfig
Blanket Implementations§
impl<T> Allocation for T
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