pub struct DerivationEngine { /* private fields */ }Expand description
Engine for deriving field values from configured sources
Implementations§
Source§impl DerivationEngine
impl DerivationEngine
Sourcepub fn new(config: EnterpriseConfig) -> Self
pub fn new(config: EnterpriseConfig) -> Self
Create a new derivation engine with the given configuration
Sourcepub fn derive_fields(
&self,
context: &DerivationContext,
) -> HashMap<String, String>
pub fn derive_fields( &self, context: &DerivationContext, ) -> HashMap<String, String>
Derive all configured fields for a spec
Returns a HashMap with field names as keys and derived values as values. Fields that fail to match their pattern are omitted from the result. If the enterprise config is empty, returns an empty HashMap (fast path).
Trait Implementations§
Source§impl Clone for DerivationEngine
impl Clone for DerivationEngine
Source§fn clone(&self) -> DerivationEngine
fn clone(&self) -> DerivationEngine
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DerivationEngine
impl RefUnwindSafe for DerivationEngine
impl Send for DerivationEngine
impl Sync for DerivationEngine
impl Unpin for DerivationEngine
impl UnwindSafe for DerivationEngine
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