pub struct ServerMetadata {
pub name: &'static str,
pub description: &'static str,
pub icon: &'static str,
pub company: &'static str,
pub version: &'static str,
pub new_page: bool,
pub webpage: &'static str,
pub api: &'static str,
}Fields§
§name: &'static str§description: &'static str§icon: &'static str§company: &'static str§version: &'static str§new_page: bool§webpage: &'static str§api: &'static strTrait Implementations§
Source§impl Apiv2Schema for ServerMetadata
impl Apiv2Schema for ServerMetadata
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 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 raw_schema() -> DefaultSchemaRaw
fn raw_schema() -> DefaultSchemaRaw
Returns the raw schema for this object.
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 Debug for ServerMetadata
impl Debug for ServerMetadata
Source§impl Default for ServerMetadata
impl Default for ServerMetadata
Source§impl Deserialize<'static> for ServerMetadata
impl Deserialize<'static> for ServerMetadata
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl OperationModifier for ServerMetadata
impl OperationModifier for ServerMetadata
Source§fn update_parameter(
op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>,
)
fn update_parameter( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, )
Update the parameters list in the given operation (if needed).
Source§fn update_response(
_op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>,
)
fn update_response( _op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, )
Update the responses map 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 Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>,
)
fn update_security( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, )
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).
Auto Trait Implementations§
impl Freeze for ServerMetadata
impl RefUnwindSafe for ServerMetadata
impl Send for ServerMetadata
impl Sync for ServerMetadata
impl Unpin for ServerMetadata
impl UnwindSafe for ServerMetadata
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