1 2 3 4 5 6 7 8 9 10 11 12 13 14
/// The `minimum_should_match` type alias
///
/// <https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-minimum-should-match.html>
#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Serialize)]
pub struct MinimumShouldMatch(String);
impl<T> From<T> for MinimumShouldMatch
where
T: ToString,
{
fn from(value: T) -> Self {
Self(value.to_string())
}
}