pub enum AwsCliValue {
Null,
Boolean {
value: bool,
},
Integer {
value: i64,
},
UnsignedInteger {
value: u64,
},
Number {
value: f64,
},
String {
value: String,
},
Bytes {
value: Vec<u8>,
},
Array {
items: Vec<AwsCliValue>,
},
Object {
entries: HashMap<String, AwsCliValue>,
},
Unsupported {
type_name: String,
},
}Expand description
A recursively typed value from an AWS CLI command.
Unlike JSON, this model preserves byte strings such as CloudFormation’s
TemplateBody. Unsupported lets language bindings carry an explicit marker
for a runtime value they cannot represent rather than coercing it silently.
Variants§
Null
Boolean
Integer
UnsignedInteger
Number
String
Bytes
Array
Fields
§
items: Vec<AwsCliValue>Object
Fields
§
entries: HashMap<String, AwsCliValue>Unsupported
Implementations§
Trait Implementations§
Source§impl Clone for AwsCliValue
impl Clone for AwsCliValue
Source§impl Debug for AwsCliValue
impl Debug for AwsCliValue
Source§impl<'de> Deserialize<'de> for AwsCliValue
impl<'de> Deserialize<'de> for AwsCliValue
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
Source§impl From<Value> for AwsCliValue
impl From<Value> for AwsCliValue
Source§impl PartialEq for AwsCliValue
impl PartialEq for AwsCliValue
Source§impl Serialize for AwsCliValue
impl Serialize for AwsCliValue
impl StructuralPartialEq for AwsCliValue
Auto Trait Implementations§
impl Freeze for AwsCliValue
impl RefUnwindSafe for AwsCliValue
impl Send for AwsCliValue
impl Sync for AwsCliValue
impl Unpin for AwsCliValue
impl UnsafeUnpin for AwsCliValue
impl UnwindSafe for AwsCliValue
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