squareup 2.13.0

Rust SDK for the Square Developer API
Documentation
//! Model struct for SegmentFilter type

use serde::Serialize;

use super::FilterValue;

/// A query filter to search for buyer-accessible appointment segments by.
#[derive(Clone, Debug, Default, Eq, PartialEq, Serialize)]
pub struct SegmentFilter {
    /// The ID of the [CatalogItemVariation] object representing the service booked in this segment.
    /// Min Length 1, Max Length 36
    pub service_variation_id: String,
    /// A query filter to search for buyer-accessible appointment segments with service-providing
    /// team members matching the specified list of team member IDs. Supported query expressions are
    ///
    /// ANY- return the appointment segments with team members whose IDs match any member in
    /// this list.
    /// NONE- return the appointment segments with team members whose IDs are not in this list.
    /// ALL- not supported.
    ///
    /// When no expression is specified, any service-providing team member is eligible to fulfill
    /// the Booking.
    pub team_member_id_filter: Option<FilterValue>,
}