pub struct DefaultsSection {Show 17 fields
pub annotations: BTreeMap<String, Value>,
pub encoding: Option<Encoding>,
pub attachment_encoding: Option<Encoding>,
pub reliability: Option<Reliability>,
pub congestion: Option<Congestion>,
pub priority: Option<Priority>,
pub express: Option<bool>,
pub history: Option<History>,
pub idempotent: Option<bool>,
pub fanout: Option<Fanout>,
pub serving: Option<Serving>,
pub replies: Option<Replies>,
pub timeout_ms: Option<u64>,
pub stream: Option<DefaultsBlock>,
pub state: Option<DefaultsBlock>,
pub event: Option<DefaultsBlock>,
pub operation: Option<DefaultsBlock>,
}Expand description
[defaults] and [defaults.<kind>].
Fields§
§annotations: BTreeMap<String, Value>§encoding: Option<Encoding>§attachment_encoding: Option<Encoding>§reliability: Option<Reliability>§congestion: Option<Congestion>§priority: Option<Priority>§express: Option<bool>§history: Option<History>§idempotent: Option<bool>§fanout: Option<Fanout>§serving: Option<Serving>§replies: Option<Replies>§timeout_ms: Option<u64>§stream: Option<DefaultsBlock>§state: Option<DefaultsBlock>§event: Option<DefaultsBlock>§operation: Option<DefaultsBlock>Implementations§
Source§impl DefaultsSection
impl DefaultsSection
Sourcepub fn base(&self) -> DefaultsBlock
pub fn base(&self) -> DefaultsBlock
The base block (the fields set directly under [defaults]).
pub fn for_kind(&self, kind: Kind) -> Option<&DefaultsBlock>
Trait Implementations§
Source§impl Clone for DefaultsSection
impl Clone for DefaultsSection
Source§impl Debug for DefaultsSection
impl Debug for DefaultsSection
Source§impl Default for DefaultsSection
impl Default for DefaultsSection
Source§impl<'de> Deserialize<'de> for DefaultsSection
impl<'de> Deserialize<'de> for DefaultsSection
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 JsonSchema for DefaultsSection
impl JsonSchema for DefaultsSection
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Forget for DefaultsSection
impl Freeze for DefaultsSection
impl Move for DefaultsSection
impl RefUnwindSafe for DefaultsSection
impl Send for DefaultsSection
impl Sync for DefaultsSection
impl Unpin for DefaultsSection
impl UnsafeUnpin for DefaultsSectionwhere
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
impl UnwindSafe for DefaultsSection
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more