/* Options: Date: 2026-09-01 21:49:00 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: UpdateArtists.* //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 Artists { #[serde(rename = "artistId")] pub artist_id: i64, pub name: String, } // Route("/artists/{ArtistId}", "PUT") #[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Default)] #[serde(default)] pub struct UpdateArtists { #[serde(rename = "artistId")] pub artist_id: i64, pub name: String, } impl IRequest for UpdateArtists { const NAME: &'static str = "UpdateArtists"; const VERB: &'static str = "PUT"; } impl IReturn for UpdateArtists { type Response = IdResponse; }