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

source

pub fn is_null(&self) -> bool

source

pub fn is_bool(&self) -> bool

source

pub fn is_number(&self) -> bool

source

pub fn is_string(&self) -> bool

source

pub fn is_tuple(&self) -> bool

source

pub fn is_tuple_array(&self) -> bool

source

pub fn is_array(&self) -> bool

source

pub fn is_object(&self) -> bool

source

pub fn to_json_value(self) -> Value

Trait Implementations§

source§

impl AlipayParams for AlipayValue

source§

impl<'a> From<&'a str> for AlipayValue

source§

fn from(value: &'a str) -> AlipayValue

Converts to this type from the input type.
source§

impl From<()> for AlipayValue

source§

fn from(_: ()) -> AlipayValue

Converts to this type from the input type.
source§

impl<T> From<(String, T)> for AlipayValuewhere T: Clone + Into<Value>,

source§

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>,

source§

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>,

source§

fn from(value: HashMap<String, T, RandomState>) -> AlipayValue

Converts to this type from the input type.
source§

impl From<String> for AlipayValue

source§

fn from(value: String) -> AlipayValue

Converts to this type from the input type.
source§

impl<T> From<Vec<(String, T), Global>> for AlipayValuewhere T: Clone + Into<Value>,

source§

fn from(value: Vec<(String, T), Global>) -> AlipayValue

Converts to this type from the input type.
source§

impl From<Vec<AlipayValue, Global>> for AlipayValue

source§

fn from(value: Vec<AlipayValue, Global>) -> AlipayValue

Converts to this type from the input type.
source§

impl From<bool> for AlipayValue

source§

fn from(value: bool) -> AlipayValue

Converts to this type from the input type.
source§

impl From<f32> for AlipayValue

source§

fn from(value: f32) -> AlipayValue

Converts to this type from the input type.
source§

impl From<f64> for AlipayValue

source§

fn from(value: f64) -> AlipayValue

Converts to this type from the input type.
source§

impl From<i16> for AlipayValue

source§

fn from(value: i16) -> AlipayValue

Converts to this type from the input type.
source§

impl From<i32> for AlipayValue

source§

fn from(value: i32) -> AlipayValue

Converts to this type from the input type.
source§

impl From<i64> for AlipayValue

source§

fn from(value: i64) -> AlipayValue

Converts to this type from the input type.
source§

impl From<i8> for AlipayValue

source§

fn from(value: i8) -> AlipayValue

Converts to this type from the input type.
source§

impl From<isize> for AlipayValue

source§

fn from(value: isize) -> AlipayValue

Converts to this type from the input type.
source§

impl From<u16> for AlipayValue

source§

fn from(value: u16) -> AlipayValue

Converts to this type from the input type.
source§

impl From<u32> for AlipayValue

source§

fn from(value: u32) -> AlipayValue

Converts to this type from the input type.
source§

impl From<u64> for AlipayValue

source§

fn from(value: u64) -> AlipayValue

Converts to this type from the input type.
source§

impl From<u8> for AlipayValue

source§

fn from(value: u8) -> AlipayValue

Converts to this type from the input type.
source§

impl From<usize> for AlipayValue

source§

fn from(value: usize) -> AlipayValue

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> Typeable for Twhere T: Any,

§

fn get_type(&self) -> TypeId

Get the TypeId of this object.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> UnsafeAny for Twhere T: Any,