#[non_exhaustive]pub enum MergeStrategy {
Deep,
Fallback,
}Expand description
Strategy for merging history data from multiple providers.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Deep
Fetch from all eligible providers concurrently and merge their data. This produces the most complete dataset by backfilling gaps from lower-priority providers.
Fallback
Iterate through providers sequentially and stop as soon as one returns a non-empty dataset. This is more economical for API rate limits but may miss data from lower-priority providers.
Trait Implementations§
Source§impl Clone for MergeStrategy
impl Clone for MergeStrategy
Source§fn clone(&self) -> MergeStrategy
fn clone(&self) -> MergeStrategy
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 moreSource§impl Debug for MergeStrategy
impl Debug for MergeStrategy
Source§impl Default for MergeStrategy
impl Default for MergeStrategy
Source§fn default() -> MergeStrategy
fn default() -> MergeStrategy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MergeStrategy
impl<'de> Deserialize<'de> for MergeStrategy
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 MergeStrategy
impl PartialEq for MergeStrategy
Source§impl Serialize for MergeStrategy
impl Serialize for MergeStrategy
impl Copy for MergeStrategy
impl Eq for MergeStrategy
impl StructuralPartialEq for MergeStrategy
Auto Trait Implementations§
impl Freeze for MergeStrategy
impl RefUnwindSafe for MergeStrategy
impl Send for MergeStrategy
impl Sync for MergeStrategy
impl Unpin for MergeStrategy
impl UnwindSafe for MergeStrategy
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