#[non_exhaustive]pub enum DamlType {
}Expand description
A Daml type — a primitive, a container, or a reference to a named data type.
This is the type a record field, choice argument, or contract key can take.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Unit
The Unit type ().
Bool
Bool.
Int64
Int64.
Numeric(u8)
Numeric n — a fixed-scale decimal; the value is the scale (decimals).
Text
Text.
Timestamp
Timestamp (microseconds since the Unix epoch, UTC).
Date
Date (days since the Unix epoch).
Party
Party.
ContractId(Box<DamlType>)
ContractId t — a handle to a contract of the referenced payload type.
List(Box<DamlType>)
List t / [t].
Optional(Box<DamlType>)
Optional t.
TextMap(Box<DamlType>)
TextMap t — a map keyed by Text.
GenMap(Box<DamlType>, Box<DamlType>)
GenMap k v — a map with arbitrary key type.
Ref(TypeRef)
A reference to a named data type (record / variant / enum).
Var(String)
A type parameter (a, b, …) inside a generic data type.
Boxed(Box<DamlType>)
A type behind a Box, used to give recursive types the indirection Rust
requires (Daml allows a type to contain itself directly; Rust does not).
Trait Implementations§
impl Eq for DamlType
impl StructuralPartialEq for DamlType
Auto Trait Implementations§
impl Freeze for DamlType
impl RefUnwindSafe for DamlType
impl Send for DamlType
impl Sync for DamlType
impl Unpin for DamlType
impl UnsafeUnpin for DamlType
impl UnwindSafe for DamlType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.