pub struct AcceptedJson<T: Serialize + Apiv2Schema>(pub T);
Tuple Fields§
§0: T
Trait Implementations§
source§impl<T> Apiv2Schema for AcceptedJson<T>where
T: Serialize + Apiv2Schema,
impl<T> Apiv2Schema for AcceptedJson<T>where
T: Serialize + Apiv2Schema,
source§fn name() -> Option<String>
fn name() -> Option<String>
Name of this schema. This is the name to which the definition of the object is mapped.
source§fn raw_schema() -> DefaultSchemaRaw
fn raw_schema() -> DefaultSchemaRaw
Returns the raw schema for this object.
source§fn description() -> &'static str
fn description() -> &'static str
Description of this schema. In case the trait is derived, uses the documentation on the type.
source§fn schema_with_ref() -> DefaultSchemaRaw
fn schema_with_ref() -> DefaultSchemaRaw
Returns the schema with a reference (if this is an object). Read more
source§fn security_scheme() -> Option<SecurityScheme>
fn security_scheme() -> Option<SecurityScheme>
Returns the security scheme for this object.
fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>
source§impl<T> Debug for AcceptedJson<T>
impl<T> Debug for AcceptedJson<T>
source§impl<T> Display for AcceptedJson<T>
impl<T> Display for AcceptedJson<T>
source§impl<T> OperationModifier for AcceptedJson<T>where
T: Serialize + Apiv2Schema,
impl<T> OperationModifier for AcceptedJson<T>where
T: Serialize + Apiv2Schema,
source§fn update_response(op: &mut DefaultOperationRaw)
fn update_response(op: &mut DefaultOperationRaw)
Update the responses map in the given operation (if needed).
source§fn update_parameter(op: &mut DefaultOperationRaw)
fn update_parameter(op: &mut DefaultOperationRaw)
Update the parameters list in the given operation (if needed).
source§fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)
fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)
Update the definitions map (if needed).
source§fn update_security(op: &mut DefaultOperationRaw)
fn update_security(op: &mut DefaultOperationRaw)
Update the security map in the given operation (if needed).
source§fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)
fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)
Update the security definition map (if needed).
source§impl<T> Responder for AcceptedJson<T>where
T: Serialize + Apiv2Schema,
impl<T> Responder for AcceptedJson<T>where
T: Serialize + Apiv2Schema,
Auto Trait Implementations§
impl<T> Freeze for AcceptedJson<T>where
T: Freeze,
impl<T> RefUnwindSafe for AcceptedJson<T>where
T: RefUnwindSafe,
impl<T> Send for AcceptedJson<T>where
T: Send,
impl<T> Sync for AcceptedJson<T>where
T: Sync,
impl<T> Unpin for AcceptedJson<T>where
T: Unpin,
impl<T> UnwindSafe for AcceptedJson<T>where
T: UnwindSafe,
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