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 duplicate 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 for ApiBodyInfo
impl PartialEq for ApiBodyInfo
Source§impl Serialize for ApiBodyInfo
impl Serialize for ApiBodyInfo
impl Eq for ApiBodyInfo
impl StructuralPartialEq for ApiBodyInfo
Auto Trait Implementations§
impl Freeze for ApiBodyInfo
impl RefUnwindSafe for ApiBodyInfo
impl Send for ApiBodyInfo
impl Sync for ApiBodyInfo
impl Unpin for ApiBodyInfo
impl UnwindSafe for ApiBodyInfo
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