pub struct DataProfilesConfig {
pub active: String,
pub variants: BTreeMap<String, DataProfile>,
}Fields§
§active: String§variants: BTreeMap<String, DataProfile>Implementations§
Source§impl DataProfilesConfig
impl DataProfilesConfig
Sourcepub fn match_endpoint(&self, endpoint: &str) -> Option<&DataProfile>
pub fn match_endpoint(&self, endpoint: &str) -> Option<&DataProfile>
Find the first variant whose endpoint_pattern matches (exact or prefix).
Trait Implementations§
Source§impl Clone for DataProfilesConfig
impl Clone for DataProfilesConfig
Source§fn clone(&self) -> DataProfilesConfig
fn clone(&self) -> DataProfilesConfig
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 DataProfilesConfig
impl Debug for DataProfilesConfig
Source§impl Default for DataProfilesConfig
impl Default for DataProfilesConfig
Source§impl<'de> Deserialize<'de> for DataProfilesConfig
impl<'de> Deserialize<'de> for DataProfilesConfig
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
Auto Trait Implementations§
impl Freeze for DataProfilesConfig
impl RefUnwindSafe for DataProfilesConfig
impl Send for DataProfilesConfig
impl Sync for DataProfilesConfig
impl Unpin for DataProfilesConfig
impl UnsafeUnpin for DataProfilesConfig
impl UnwindSafe for DataProfilesConfig
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