pub struct DefaultsBlock {Show 13 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>,
}Expand description
The fields [defaults] may set (r3.3 D2).
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>Trait Implementations§
Source§impl Clone for DefaultsBlock
impl Clone for DefaultsBlock
Source§impl Debug for DefaultsBlock
impl Debug for DefaultsBlock
Source§impl Default for DefaultsBlock
impl Default for DefaultsBlock
Source§impl<'de> Deserialize<'de> for DefaultsBlock
impl<'de> Deserialize<'de> for DefaultsBlock
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 DefaultsBlock
impl JsonSchema for DefaultsBlock
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 DefaultsBlock
impl Freeze for DefaultsBlock
impl Move for DefaultsBlock
impl RefUnwindSafe for DefaultsBlock
impl Send for DefaultsBlock
impl Sync for DefaultsBlock
impl Unpin for DefaultsBlock
impl UnsafeUnpin for DefaultsBlockwhere
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
impl UnwindSafe for DefaultsBlock
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