pub struct ResourceSpec {Show 31 fields
pub kind: Kind,
pub doc: Option<String>,
pub params: BTreeMap<String, ParamType>,
pub cardinality: Option<Cardinality>,
pub epoch: Option<String>,
pub optional: bool,
pub gate: Option<Gate>,
pub deprecated: Option<Deprecated>,
pub annotations: BTreeMap<String, Value>,
pub type_: Option<TypeRef>,
pub attachment: Option<TypeRef>,
pub encoding: Option<Encoding>,
pub attachment_encoding: Option<Encoding>,
pub explicit: Option<bool>,
pub reliability: Option<Reliability>,
pub congestion: Option<Congestion>,
pub priority: Option<Priority>,
pub express: Option<bool>,
pub history: Option<History>,
pub frame: Option<FrameSpec>,
pub rate: Option<String>,
pub retention: Option<String>,
pub request: Option<TypeRef>,
pub response: Option<TypeRef>,
pub error: Option<TypeRef>,
pub idempotent: Option<bool>,
pub fanout: Option<Fanout>,
pub serving: Option<Serving>,
pub replies: Option<Replies>,
pub summary: Option<TypeRef>,
pub timeout_ms: Option<u64>,
}Expand description
[resources."<template>"]: every field any kind may carry. Which ones
a kind accepts is checked by the lints (E014).
Fields§
§kind: Kind§doc: Option<String>§params: BTreeMap<String, ParamType>§cardinality: Option<Cardinality>§epoch: Option<String>§optional: bool§gate: Option<Gate>§deprecated: Option<Deprecated>§annotations: BTreeMap<String, Value>§type_: Option<TypeRef>§attachment: Option<TypeRef>§encoding: Option<Encoding>§attachment_encoding: Option<Encoding>§explicit: Option<bool>§reliability: Option<Reliability>§congestion: Option<Congestion>§priority: Option<Priority>§express: Option<bool>§history: Option<History>§frame: Option<FrameSpec>A frame resource’s frame table (core §7.7, draft 4): a plain
stream’s alone, never defaulted.
rate: Option<String>§retention: Option<String>§request: Option<TypeRef>§response: Option<TypeRef>§error: Option<TypeRef>§idempotent: Option<bool>§fanout: Option<Fanout>§serving: Option<Serving>§replies: Option<Replies>§summary: Option<TypeRef>§timeout_ms: Option<u64>Trait Implementations§
Source§impl Clone for ResourceSpec
impl Clone for ResourceSpec
Source§impl Debug for ResourceSpec
impl Debug for ResourceSpec
Source§impl<'de> Deserialize<'de> for ResourceSpec
impl<'de> Deserialize<'de> for ResourceSpec
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 ResourceSpec
impl JsonSchema for ResourceSpec
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 ResourceSpec
impl Freeze for ResourceSpecwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const LeafNode<String, ParamType> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, ParamType)>>: Freeze,
PhantomData<String>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
*const LeafNode<String, DeadbandSpec> is !null: Freeze,
PhantomData<Box<(String, DeadbandSpec)>>: Freeze,
impl Move for ResourceSpec
impl RefUnwindSafe for ResourceSpec
impl Send for ResourceSpec
impl Sync for ResourceSpec
impl Unpin for ResourceSpec
impl UnsafeUnpin for ResourceSpecwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const LeafNode<String, ParamType> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, ParamType)>>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
*const LeafNode<String, DeadbandSpec> is !null: UnsafeUnpin,
PhantomData<Box<(String, DeadbandSpec)>>: UnsafeUnpin,
impl UnwindSafe for ResourceSpecwhere
RawVecInner: UnwindSafe,
BTreeMap<String, ParamType>: UnwindSafe,
BTreeMap<String, Value>: UnwindSafe,
BTreeMap<String, DeadbandSpec>: 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
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