pub struct Data {
pub type_: TypeId,
pub attachment: Option<TypeId>,
pub encoding: Option<Encoding>,
pub attachment_encoding: Option<Encoding>,
pub reliability: Reliability,
pub congestion: Congestion,
pub priority: Priority,
pub express: bool,
pub history: Option<HistoryParams>,
pub frame: Option<FrameParams>,
pub rate: Option<Rate>,
pub retention_s: Option<u64>,
}Expand description
A stream, state or event resource.
Fields§
§type_: TypeId§attachment: Option<TypeId>§encoding: Option<Encoding>Set exactly when the type is a JSON Schema type.
attachment_encoding: Option<Encoding>Set exactly when the attachment is a JSON Schema type.
reliability: Reliability§congestion: Congestion§priority: Priority§express: bool§history: Option<HistoryParams>§frame: Option<FrameParams>A frame resource’s frame table (core §7.7, 0.83): a plain stream
with no parameter alone; None for every other resource.
rate: Option<Rate>Events only.
retention_s: Option<u64>Events only: how far back a replay GET may reach.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Data
impl Freeze for Data
impl RefUnwindSafe for Data
impl Send for Data
impl Sync for Data
impl Unpin for Data
impl UnsafeUnpin for Data
impl UnwindSafe for Data
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,
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