pub enum CloudEventSubject {
TelemetryTopic,
Custom(String),
None,
}
Expand description
Enum representing the different values that the subject
field of a CloudEvent
can take.
Variants§
TelemetryTopic
The telemetry topic should be used as the subject when the CloudEvent
is sent across the wire
Custom(String)
A custom (provided) String
should be used for the subject
of the CloudEvent
None
No subject should be included on the CloudEvent
Trait Implementations§
Source§impl Clone for CloudEventSubject
impl Clone for CloudEventSubject
Source§fn clone(&self) -> CloudEventSubject
fn clone(&self) -> CloudEventSubject
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 moreAuto Trait Implementations§
impl Freeze for CloudEventSubject
impl RefUnwindSafe for CloudEventSubject
impl Send for CloudEventSubject
impl Sync for CloudEventSubject
impl Unpin for CloudEventSubject
impl UnwindSafe for CloudEventSubject
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