/* Options: Date: 2026-09-01 21:49:34 Version: 10.09 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://blazor-gallery.servicestack.net //GlobalNamespace: //MakePropertiesOptional: False //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: DeleteContact.* //ExcludeTypes: //DefaultImports: serde::{Deserialize, Serialize},serde_json::Value,std::collections::HashMap */ #![allow( dead_code, non_camel_case_types, non_snake_case, clippy::upper_case_acronyms )] use serde::{Deserialize, Serialize}; use serde_json::Value; use servicestack::*; use std::collections::HashMap; #[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Default)] #[serde(default)] pub struct Contact { pub id: i32, // Computed #[serde(rename = "displayName")] pub display_name: String, #[serde(rename = "profileUrl")] pub profile_url: String, #[serde(rename = "firstName")] pub first_name: String, #[serde(rename = "lastName")] pub last_name: String, #[serde(rename = "salaryExpectation")] #[serde(default, skip_serializing_if = "Option::is_none")] pub salary_expectation: Option, #[serde(rename = "jobType")] pub job_type: String, #[serde(rename = "availabilityWeeks")] pub availability_weeks: i32, #[serde(rename = "preferredWorkType")] pub preferred_work_type: EmploymentType, #[serde(rename = "preferredLocation")] pub preferred_location: String, pub email: String, pub phone: String, #[serde(default, skip_serializing_if = "Option::is_none")] pub skills: Option>, pub about: String, pub applications: Vec, } #[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Default)] #[serde(default)] pub struct DeleteContact { pub id: i32, } impl IRequest for DeleteContact { const NAME: &'static str = "DeleteContact"; const VERB: &'static str = "DELETE"; } impl IReturnVoid for DeleteContact {}