squareup 2.13.0

Rust SDK for the Square Developer API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Model struct for FilterValue type

use serde::Serialize;

/// A filter to select resources based on an exact field value.
///
/// For any given value, the value can only be in one property.
/// Depending on the field, either all properties can be set or only a subset will be available.
#[derive(Clone, Debug, Default, Eq, PartialEq, Serialize)]
pub struct FilterValue {
    /// A list of terms that must be present on the field of the resource.
    pub all: Option<Vec<String>>,
    /// A list of terms where at least one of them must be present on the field of the resource.
    pub any: Option<Vec<String>>,
    /// A list of terms that must not be present on the field the resource
    pub none: Option<Vec<String>>,
}