pub enum ApplicationValue {
Show 16 variants
Null,
Bool(bool),
I64(i64),
U64(u64),
Decimal {
coefficient_twos_complement: Vec<u8>,
scale: u32,
precision: Option<u32>,
},
Money {
currency: String,
amount: Box<Self>,
},
String(String),
Uuid(ApplicationUuid),
Enum(String),
EnumIdentity {
type_id: u32,
variant_id: u32,
name: String,
},
Bytes(Vec<u8>),
Date(i32),
Timestamp {
seconds: i64,
nanos: u32,
},
Vector(CanonicalVector),
List(Vec<Self>),
Record(BTreeMap<String, Self>),
}Expand description
A bounded application value addressed only by contract names.
Variants§
Null
Explicit null.
Bool(bool)
Boolean.
I64(i64)
Signed integer.
U64(u64)
Unsigned integer.
Decimal
Exact fixed-scale decimal.
Fields
Money
Currency-qualified exact decimal.
String(String)
Exact text.
Uuid(ApplicationUuid)
Canonical UUID (bytes form; display text is lazy).
Enum(String)
Contract enum variant name lowered without caller-visible numeric IDs.
EnumIdentity
Compiler-generated stable enum identity. Application code uses the name.
Fields
Bytes(Vec<u8>)
Opaque bytes.
Date(i32)
Days since the Unix epoch.
Timestamp
UTC timestamp.
Vector(CanonicalVector)
Canonical finite binary32 vector with a structurally bounded dimension.
List(Vec<Self>)
Ordered bounded values.
Record(BTreeMap<String, Self>)
Name-addressed record.
Trait Implementations§
Source§impl Clone for ApplicationValue
impl Clone for ApplicationValue
Source§fn clone(&self) -> ApplicationValue
fn clone(&self) -> ApplicationValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ApplicationValue
impl Debug for ApplicationValue
impl Eq for ApplicationValue
Source§impl PartialEq for ApplicationValue
impl PartialEq for ApplicationValue
Source§fn eq(&self, other: &ApplicationValue) -> bool
fn eq(&self, other: &ApplicationValue) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ApplicationValue
Auto Trait Implementations§
impl !Freeze for ApplicationValue
impl RefUnwindSafe for ApplicationValue
impl Send for ApplicationValue
impl Sync for ApplicationValue
impl Unpin for ApplicationValue
impl UnsafeUnpin for ApplicationValue
impl UnwindSafe for ApplicationValue
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].