pub enum ParamType {
Text,
Integer,
Number,
Boolean,
Object,
Array,
Resource,
DateTime,
Secret,
}Expand description
The type of one action parameter. Deliberately small: these are values a caller with no screen can produce from a descriptor alone.
Text, Integer and
Boolean carry the compositor’s existing wire spellings
unchanged. Number is the addition the app surface needs:
the lossy parses this module replaces were overwhelmingly fractional
(opacity, speed, volume), and rounding them to an integer would throw away
exactly the values they exist to carry.
Variants§
Text
Integer
Number
A real number. JSON carries it as a number; an integer literal is
accepted and widened, because 1 and 1.0 are the same rate.
Boolean
Object
Array
Resource
Stable address of another published Tilo resource.
DateTime
RFC 3339 timestamp.
Secret
Text that must be redacted from logs, history, and confirmation copy.
Implementations§
Trait Implementations§
impl Copy for ParamType
Source§impl<'de> Deserialize<'de> for ParamType
impl<'de> Deserialize<'de> for ParamType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ParamType
impl StructuralPartialEq for ParamType
Auto Trait Implementations§
impl Forget for ParamType
impl Freeze for ParamType
impl Move for ParamType
impl RefUnwindSafe for ParamType
impl Send for ParamType
impl Sync for ParamType
impl Unpin for ParamType
impl UnsafeUnpin for ParamType
impl UnwindSafe for ParamType
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more