[−][src]Trait serde_dhall::StaticType
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
fn static_type() -> Value
Implementations on Foreign Types
impl StaticType for bool
[src]
fn static_type() -> Value
[src]
impl StaticType for Natural
[src]
fn static_type() -> Value
[src]
impl StaticType for u64
[src]
fn static_type() -> Value
[src]
impl StaticType for Integer
[src]
fn static_type() -> Value
[src]
impl StaticType for String
[src]
fn static_type() -> Value
[src]
impl<A, B> StaticType for (A, B) where
A: StaticType,
B: StaticType,
[src]
A: StaticType,
B: StaticType,
fn static_type() -> Value
[src]
impl<T, E> StaticType for Result<T, E> where
T: StaticType,
E: StaticType,
[src]
T: StaticType,
E: StaticType,
fn static_type() -> Value
[src]
impl<T> StaticType for Option<T> where
T: StaticType,
[src]
T: StaticType,
fn static_type() -> Value
[src]
impl<T> StaticType for Vec<T> where
T: StaticType,
[src]
T: StaticType,
fn static_type() -> Value
[src]
impl<'a, T> StaticType for &'a T where
T: StaticType,
[src]
T: StaticType,