tmflib 0.1.37

Interface library for processing TMF payloads
Documentation
use serde::{Serialize, Deserialize};
use super::{RelatedParty, ServiceQualificationItem, TaskStateType};
/**QueryServiceQualification is used to retrieve a list of services that are technically available in the context of the interaction (place, party, service characteristics, ...).
Skipped properties: id,href,queryServiceQualificationDate,@type,@schemaLocation,@baseType*/
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct QueryServiceQualificationUpdate {
    ///Description of the serviceQualification
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub description: Option<String>,
    ///Effective date to serviceQualification completion
    #[serde(rename = "effectiveQualificationDate")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub effective_qualification_date: Option<crate::DateTime>,
    ///Date when the requester expect to provide an answer for the qualification request.
    #[serde(rename = "estimatedResponseDate")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub estimated_response_date: Option<crate::DateTime>,
    ///A date (DateTime). Deadline date when the requester expected a qualification answer.
    #[serde(rename = "expectedQualificationDate")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub expected_qualification_date: Option<crate::DateTime>,
    ///Date when the qualification response expires
    #[serde(rename = "expirationDate")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub expiration_date: Option<crate::DateTime>,
    ///Identifier provided by the requester
    #[serde(rename = "externalId")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub external_id: Option<String>,
    ///An indicator which when the value is "true" means that requester expects to get qualifcation result immediately in the response. If the indicator is true then the response code of 200 indicates the operation is successful otherwise a task is created with a response 201.
    #[serde(rename = "instantSyncQualification")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub instant_sync_qualification: Option<bool>,
    ///A list of related party references, defines party or party role linked to this request.
    #[serde(rename = "relatedParty")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub related_party: Option<Vec<RelatedParty>>,
    ///A ServiceQualificationItem relates to a specific service being checked in a qualification operation.
    #[serde(rename = "searchCriteria")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub search_criteria: Option<ServiceQualificationItem>,
    ///A list of service qualification items.
    #[serde(rename = "serviceQualificationItem")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub service_qualification_item: Option<Vec<ServiceQualificationItem>>,
    ///Possible values for the state of a task
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub state: Option<TaskStateType>,
}
impl std::fmt::Display for QueryServiceQualificationUpdate {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
        write!(f, "{}", serde_json::to_string(self).unwrap())
    }
}