[]Enum amqp_worker::parameter::Parameter

pub enum Parameter {
    ArrayOfStringsParam {
        id: String,
        default: Option<Vec<String>>,
        value: Option<Vec<String>>,
    },
    BooleanParam {
        id: String,
        default: Option<bool>,
        value: Option<bool>,
    },
    CredentialParam {
        id: String,
        default: Option<String>,
        value: Option<String>,
    },
    IntegerParam {
        id: String,
        default: Option<i64>,
        value: Option<i64>,
    },
    RequirementParam {
        id: String,
        default: Option<Requirement>,
        value: Option<Requirement>,
    },
    StringParam {
        id: String,
        default: Option<String>,
        value: Option<String>,
    },
}

Variants

ArrayOfStringsParam

Fields of ArrayOfStringsParam

id: Stringdefault: Option<Vec<String>>value: Option<Vec<String>>
BooleanParam

Fields of BooleanParam

id: Stringdefault: Option<bool>value: Option<bool>
CredentialParam

Fields of CredentialParam

id: Stringdefault: Option<String>value: Option<String>
IntegerParam

Fields of IntegerParam

id: Stringdefault: Option<i64>value: Option<i64>
RequirementParam

Fields of RequirementParam

id: Stringdefault: Option<Requirement>value: Option<Requirement>
StringParam

Fields of StringParam

id: Stringdefault: Option<String>value: Option<String>

Methods

impl Parameter

pub fn get_id(&self) -> String

pub fn has_value_or_default(&self) -> bool

Trait Implementations

impl Clone for Parameter

impl Debug for Parameter

impl<'de> Deserialize<'de> for Parameter

impl PartialEq<Parameter> for Parameter

impl Serialize for Parameter

impl StructuralPartialEq for Parameter

impl ToString for Parameter

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> DeserializeOwned for T where
    T: Deserialize<'de>, 
[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.