use serde::{Deserialize, Serialize};
#[allow(unused_imports)]
use super::*;
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct SearchDetails {
#[serde(rename = "type")]
pub r#type: String,
#[serde(skip_serializing_if = "Option::is_none")]
pub matching_context_type: Option<SearchDetailsMatchingContextType>,
}
pub struct SearchDetailsRequired {
pub r#type: String,
}
impl SearchDetails {
pub fn new(required: SearchDetailsRequired) -> Self {
Self {
r#type: required.r#type,
matching_context_type: None,
}
}
pub fn set_matching_context_type(
mut self,
value: Option<SearchDetailsMatchingContextType>,
) -> Self {
self.matching_context_type = value;
self
}
pub fn set_type(mut self, value: String) -> Self {
self.r#type = value;
self
}
pub fn with_matching_context_type(mut self, value: SearchDetailsMatchingContextType) -> Self {
self.matching_context_type = Some(value);
self
}
}