[][src]Trait serde_dhall::StaticType

pub trait StaticType {
    fn static_type() -> Value;
}

A Rust type that can be represented as a Dhall type.

A typical example is Option<bool>, represented by the dhall expression Optional Bool.

This trait can and should be automatically derived.

The representation needs to be independent of the value. For this reason, something like HashMap<String, bool> cannot implement StaticType because each different value would have a different Dhall record type.

Required methods

Loading content...

Implementations on Foreign Types

impl StaticType for bool[src]

impl StaticType for Natural[src]

impl StaticType for u64[src]

impl StaticType for Integer[src]

impl StaticType for String[src]

impl<A, B> StaticType for (A, B) where
    A: StaticType,
    B: StaticType
[src]

impl<T, E> StaticType for Result<T, E> where
    T: StaticType,
    E: StaticType
[src]

impl<T> StaticType for Option<T> where
    T: StaticType
[src]

impl<T> StaticType for Vec<T> where
    T: StaticType
[src]

impl<'a, T> StaticType for &'a T where
    T: StaticType
[src]

Loading content...

Implementors

Loading content...