Struct seamless::api::ApiBodyInfo [−][src]
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ApiBodyInfo
impl Send for ApiBodyInfo
impl Sync for ApiBodyInfo
impl Unpin for ApiBodyInfo
impl UnwindSafe for ApiBodyInfo
Blanket Implementations
Mutably borrows from an owned value. Read more