Enum cloudevents::event::SpecVersion
source · pub enum SpecVersion {
V03,
V10,
}
Expand description
CloudEvent specification version.
Variants§
Implementations§
source§impl SpecVersion
impl SpecVersion
sourcepub fn as_str(&self) -> &str
pub fn as_str(&self) -> &str
Returns the string representation of SpecVersion
.
sourcepub fn attribute_names(&self) -> &'static [&'static str]
pub fn attribute_names(&self) -> &'static [&'static str]
Get all attribute names for this SpecVersion
.
Trait Implementations§
source§impl Clone for SpecVersion
impl Clone for SpecVersion
source§fn clone(&self) -> SpecVersion
fn clone(&self) -> SpecVersion
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 SpecVersion
impl Debug for SpecVersion
source§impl Display for SpecVersion
impl Display for SpecVersion
source§impl Hash for SpecVersion
impl Hash for SpecVersion
source§impl PartialEq for SpecVersion
impl PartialEq for SpecVersion
source§impl TryFrom<&str> for SpecVersion
impl TryFrom<&str> for SpecVersion
source§type Error = UnknownSpecVersion
type Error = UnknownSpecVersion
The type returned in the event of a conversion error.
impl Eq for SpecVersion
impl StructuralPartialEq for SpecVersion
Auto Trait Implementations§
impl Freeze for SpecVersion
impl RefUnwindSafe for SpecVersion
impl Send for SpecVersion
impl Sync for SpecVersion
impl Unpin for SpecVersion
impl UnwindSafe for SpecVersion
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)