Enum alipay_rs::AlipayValue
source · pub enum AlipayValue {
Null,
Bool(bool),
Number(Number),
String(String),
Tuple((String, Value)),
TupleArray(Vec<(String, Value), Global>),
Array(Vec<AlipayValue, Global>),
Object(HashMap<String, AlipayValue, RandomState>),
}
Variants§
Null
Bool(bool)
Number(Number)
String(String)
Tuple((String, Value))
TupleArray(Vec<(String, Value), Global>)
Array(Vec<AlipayValue, Global>)
Object(HashMap<String, AlipayValue, RandomState>)
Implementations§
source§impl AlipayValue
impl AlipayValue
pub fn is_null(&self) -> bool
pub fn is_bool(&self) -> bool
pub fn is_number(&self) -> bool
pub fn is_string(&self) -> bool
pub fn is_tuple(&self) -> bool
pub fn is_tuple_array(&self) -> bool
pub fn is_array(&self) -> bool
pub fn is_object(&self) -> bool
pub fn to_json_value(self) -> Value
Trait Implementations§
source§impl AlipayParams for AlipayValue
impl AlipayParams for AlipayValue
fn to_alipay_value(self) -> AlipayValue
source§impl<'a> From<&'a str> for AlipayValue
impl<'a> From<&'a str> for AlipayValue
source§fn from(value: &'a str) -> AlipayValue
fn from(value: &'a str) -> AlipayValue
Converts to this type from the input type.
source§impl From<()> for AlipayValue
impl From<()> for AlipayValue
source§fn from(_: ()) -> AlipayValue
fn from(_: ()) -> AlipayValue
Converts to this type from the input type.
source§impl<T> From<(String, T)> for AlipayValuewhere
T: Clone + Into<Value>,
impl<T> From<(String, T)> for AlipayValuewhere T: Clone + Into<Value>,
source§fn from(value: (String, T)) -> AlipayValue
fn from(value: (String, T)) -> AlipayValue
Converts to this type from the input type.
source§impl<'a, T> From<HashMap<&'a str, T, RandomState>> for AlipayValuewhere
T: Into<AlipayValue>,
impl<'a, T> From<HashMap<&'a str, T, RandomState>> for AlipayValuewhere T: Into<AlipayValue>,
source§fn from(value: HashMap<&'a str, T, RandomState>) -> AlipayValue
fn from(value: HashMap<&'a str, T, RandomState>) -> AlipayValue
Converts to this type from the input type.
source§impl<T> From<HashMap<String, T, RandomState>> for AlipayValuewhere
T: Into<AlipayValue>,
impl<T> From<HashMap<String, T, RandomState>> for AlipayValuewhere T: Into<AlipayValue>,
source§fn from(value: HashMap<String, T, RandomState>) -> AlipayValue
fn from(value: HashMap<String, T, RandomState>) -> AlipayValue
Converts to this type from the input type.
source§impl From<String> for AlipayValue
impl From<String> for AlipayValue
source§fn from(value: String) -> AlipayValue
fn from(value: String) -> AlipayValue
Converts to this type from the input type.
source§impl From<Vec<AlipayValue, Global>> for AlipayValue
impl From<Vec<AlipayValue, Global>> for AlipayValue
source§fn from(value: Vec<AlipayValue, Global>) -> AlipayValue
fn from(value: Vec<AlipayValue, Global>) -> AlipayValue
Converts to this type from the input type.
source§impl From<bool> for AlipayValue
impl From<bool> for AlipayValue
source§fn from(value: bool) -> AlipayValue
fn from(value: bool) -> AlipayValue
Converts to this type from the input type.
source§impl From<f32> for AlipayValue
impl From<f32> for AlipayValue
source§fn from(value: f32) -> AlipayValue
fn from(value: f32) -> AlipayValue
Converts to this type from the input type.
source§impl From<f64> for AlipayValue
impl From<f64> for AlipayValue
source§fn from(value: f64) -> AlipayValue
fn from(value: f64) -> AlipayValue
Converts to this type from the input type.
source§impl From<i16> for AlipayValue
impl From<i16> for AlipayValue
source§fn from(value: i16) -> AlipayValue
fn from(value: i16) -> AlipayValue
Converts to this type from the input type.
source§impl From<i32> for AlipayValue
impl From<i32> for AlipayValue
source§fn from(value: i32) -> AlipayValue
fn from(value: i32) -> AlipayValue
Converts to this type from the input type.
source§impl From<i64> for AlipayValue
impl From<i64> for AlipayValue
source§fn from(value: i64) -> AlipayValue
fn from(value: i64) -> AlipayValue
Converts to this type from the input type.
source§impl From<i8> for AlipayValue
impl From<i8> for AlipayValue
source§fn from(value: i8) -> AlipayValue
fn from(value: i8) -> AlipayValue
Converts to this type from the input type.
source§impl From<isize> for AlipayValue
impl From<isize> for AlipayValue
source§fn from(value: isize) -> AlipayValue
fn from(value: isize) -> AlipayValue
Converts to this type from the input type.
source§impl From<u16> for AlipayValue
impl From<u16> for AlipayValue
source§fn from(value: u16) -> AlipayValue
fn from(value: u16) -> AlipayValue
Converts to this type from the input type.
source§impl From<u32> for AlipayValue
impl From<u32> for AlipayValue
source§fn from(value: u32) -> AlipayValue
fn from(value: u32) -> AlipayValue
Converts to this type from the input type.
source§impl From<u64> for AlipayValue
impl From<u64> for AlipayValue
source§fn from(value: u64) -> AlipayValue
fn from(value: u64) -> AlipayValue
Converts to this type from the input type.
source§impl From<u8> for AlipayValue
impl From<u8> for AlipayValue
source§fn from(value: u8) -> AlipayValue
fn from(value: u8) -> AlipayValue
Converts to this type from the input type.
source§impl From<usize> for AlipayValue
impl From<usize> for AlipayValue
source§fn from(value: usize) -> AlipayValue
fn from(value: usize) -> AlipayValue
Converts to this type from the input type.