pub struct AsyncApiServerDefinition {
pub name: String,
pub variables: Option<HashMap<String, Value>>,
}Expand description
Represents the AsyncAPI server configuration
Fields§
§name: StringGets/sets the target server’s name
variables: Option<HashMap<String, Value>>Gets/sets the target server’s variables, if any
Trait Implementations§
Source§impl Clone for AsyncApiServerDefinition
impl Clone for AsyncApiServerDefinition
Source§fn clone(&self) -> AsyncApiServerDefinition
fn clone(&self) -> AsyncApiServerDefinition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AsyncApiServerDefinition
impl Debug for AsyncApiServerDefinition
Source§impl Default for AsyncApiServerDefinition
impl Default for AsyncApiServerDefinition
Source§fn default() -> AsyncApiServerDefinition
fn default() -> AsyncApiServerDefinition
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AsyncApiServerDefinition
impl<'de> Deserialize<'de> for AsyncApiServerDefinition
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AsyncApiServerDefinition
impl PartialEq for AsyncApiServerDefinition
Source§fn eq(&self, other: &AsyncApiServerDefinition) -> bool
fn eq(&self, other: &AsyncApiServerDefinition) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AsyncApiServerDefinition
impl Serialize for AsyncApiServerDefinition
impl StructuralPartialEq for AsyncApiServerDefinition
Auto Trait Implementations§
impl Freeze for AsyncApiServerDefinition
impl RefUnwindSafe for AsyncApiServerDefinition
impl Send for AsyncApiServerDefinition
impl Sync for AsyncApiServerDefinition
impl Unpin for AsyncApiServerDefinition
impl UnsafeUnpin for AsyncApiServerDefinition
impl UnwindSafe for AsyncApiServerDefinition
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