[][src]Enum wikidot_path::ArgumentValue

pub enum ArgumentValue<'a> {
    String(&'a str),
    Integer(i32),
    Boolean(bool),
    Null,
}

A type for possible values an argument key could have.

Those consuming values should attempt to be flexible when accepting values. For instance a truthy key should accept 1, true, and Null (as it indicates that they key is present at all) as meaning "true".

Variants

String(&'a str)

A string argument value.

Integer(i32)

An integer argument value.

Boolean(bool)

A boolean argument value.

Null

No value explicitly passed for this argument.

Trait Implementations

impl<'a> Clone for ArgumentValue<'a>[src]

impl<'a> Debug for ArgumentValue<'a>[src]

impl<'a> Eq for ArgumentValue<'a>[src]

impl<'a> From<&'a str> for ArgumentValue<'a>[src]

impl<'_> From<()> for ArgumentValue<'_>[src]

impl<'a> From<Option<&'a str>> for ArgumentValue<'a>[src]

impl<'_> From<bool> for ArgumentValue<'_>[src]

impl<'_> From<i32> for ArgumentValue<'_>[src]

impl<'a> PartialEq<ArgumentValue<'a>> for ArgumentValue<'a>[src]

impl<'a> StructuralEq for ArgumentValue<'a>[src]

impl<'a> StructuralPartialEq for ArgumentValue<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for ArgumentValue<'a>

impl<'a> Send for ArgumentValue<'a>

impl<'a> Sync for ArgumentValue<'a>

impl<'a> Unpin for ArgumentValue<'a>

impl<'a> UnwindSafe for ArgumentValue<'a>

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, 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.