pub struct Pet {
pub id: Option<i64>,
pub category: Option<Category>,
pub name: String,
pub photo_urls: Vec<String>,
pub tags: Option<Vec<Tag>>,
pub status: Option<String>,
}Expand description
A pet for sale in the pet store
Fields§
§id: Option<i64>§category: Option<Category>§name: String§photo_urls: Vec<String>§status: Option<String>pet status in the store
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Pet
impl<'de> Deserialize<'de> for Pet
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromStr for Pet
Converts Query Parameters representation (style=form, explode=false) to a Pet value
as specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde deserializer
impl FromStr for Pet
Converts Query Parameters representation (style=form, explode=false) to a Pet value as specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde deserializer
Source§impl ToString for Pet
Converts the Pet value to the Query Parameters representation (style=form, explode=false)
specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde serializer
impl ToString for Pet
Converts the Pet value to the Query Parameters representation (style=form, explode=false) specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde serializer
impl StructuralPartialEq for Pet
Auto Trait Implementations§
impl Freeze for Pet
impl RefUnwindSafe for Pet
impl Send for Pet
impl Sync for Pet
impl Unpin for Pet
impl UnwindSafe for Pet
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more