pub struct UseEventStream {
pub source_name: Option<String>,
pub source: Option<Ref>,
pub scope: Option<Vec<Ref>>,
pub target_path: Option<String>,
pub availability: Option<Availability>,
pub filter: Option<Dictionary>,
}
Expand description
Declares an EventStream used by a component.
Fields§
§source_name: Option<String>
§source: Option<Ref>
§scope: Option<Vec<Ref>>
§target_path: Option<String>
§availability: Option<Availability>
§filter: Option<Dictionary>
Trait Implementations§
Source§impl Clone for UseEventStream
impl Clone for UseEventStream
Source§fn clone(&self) -> UseEventStream
fn clone(&self) -> UseEventStream
Returns a copy of the value. Read more
1.0.0 · 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 UseEventStream
impl Debug for UseEventStream
Source§impl Encodable for UseEventStream
impl Encodable for UseEventStream
Source§type Encoded = WireUseEventStream
type Encoded = WireUseEventStream
The wire type for the value.
§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
encoding instead of calling
encode
. Read moreSource§impl<___E> Encode<___E> for UseEventStreamwhere
___E: Encoder + ?Sized,
impl<___E> Encode<___E> for UseEventStreamwhere
___E: Encoder + ?Sized,
Source§impl TakeFrom<WireUseEventStream> for UseEventStream
impl TakeFrom<WireUseEventStream> for UseEventStream
Source§fn take_from(from: &WireUseEventStream) -> Self
fn take_from(from: &WireUseEventStream) -> Self
Converts from the given
T
, taking any resources that can’t be cloned.§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
conversion instead of calling
take_from
. Read moreAuto Trait Implementations§
impl Freeze for UseEventStream
impl RefUnwindSafe for UseEventStream
impl Send for UseEventStream
impl Sync for UseEventStream
impl Unpin for UseEventStream
impl UnwindSafe for UseEventStream
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