Struct seamless::ApiBodyInfo
source · pub struct ApiBodyInfo {
pub description: String,
pub ty: ApiBodyType,
}
Expand description
A representation of some type, including its description and shape.
This is given back for anything which implements the crate::ApiBody
trait,
and is automatically generated if one uses the crate::ApiBody
macro on some type.
Fields§
§description: String
A human friendly description of the type. When using the
ApiBody
macro, this will be automatically
populated based on the doc comments on the type.
ty: ApiBodyType
The shape of the type. This should correspond to the JSON returned when
serializing the type. If you use the ApiBody
macro, this is guaranteed to be the case.
Trait Implementations§
source§impl Clone for ApiBodyInfo
impl Clone for ApiBodyInfo
source§fn clone(&self) -> ApiBodyInfo
fn clone(&self) -> ApiBodyInfo
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ApiBodyInfo
impl Debug for ApiBodyInfo
source§impl PartialEq<ApiBodyInfo> for ApiBodyInfo
impl PartialEq<ApiBodyInfo> for ApiBodyInfo
source§fn eq(&self, other: &ApiBodyInfo) -> bool
fn eq(&self, other: &ApiBodyInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.