[][src]Enum cloudevents::event::SpecVersion

pub enum SpecVersion {
    V03,
    V10,
}

CloudEvent specification version.

Variants

V03

CloudEvents v0.3

V10

CloudEvents v1.0

Implementations

impl SpecVersion[src]

pub fn as_str(&self) -> &str[src]

Returns the string representation of SpecVersion.

pub fn attribute_names(&self) -> &'static [&'static str][src]

Get all attribute names for this SpecVersion.

pub fn all_attribute_names() -> impl Iterator<Item = &'static str>[src]

Get all attribute names for all specification versions. Note that the result iterator could contain duplicate entries.

Trait Implementations

impl Clone for SpecVersion[src]

impl Debug for SpecVersion[src]

impl Display for SpecVersion[src]

impl Eq for SpecVersion[src]

impl Hash for SpecVersion[src]

impl PartialEq<SpecVersion> for SpecVersion[src]

impl StructuralEq for SpecVersion[src]

impl StructuralPartialEq for SpecVersion[src]

impl TryFrom<&'_ str> for SpecVersion[src]

type Error = UnknownSpecVersion

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.