mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 20:07:09 +02:00
implements the batch details
This commit is contained in:
parent
5d10c2312b
commit
229fa0f902
110 changed files with 493 additions and 275 deletions
|
@ -96,6 +96,14 @@ impl<T> Setting<T> {
|
|||
}
|
||||
}
|
||||
|
||||
/// Returns other if self is not set.
|
||||
pub fn or(self, other: Self) -> Self {
|
||||
match self {
|
||||
Setting::Set(_) | Setting::Reset => self,
|
||||
Setting::NotSet => other,
|
||||
}
|
||||
}
|
||||
|
||||
/// Returns `true` if applying the new setting changed this setting
|
||||
pub fn apply(&mut self, new: Self) -> bool
|
||||
where
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue