Trait AsProxy

Source
pub trait AsProxy {
Show 21 methods // Required methods fn i32(&self) -> i32; fn i64(&self) -> i64; fn u32(&self) -> u32; fn u64(&self) -> u64; fn f64(&self) -> f64; fn str(&self) -> &str; fn string(&self) -> String; fn bool(&self) -> bool; fn array(&self) -> Option<&Array>; fn object(&self) -> Option<&Document>; fn is_empty(&self) -> bool; fn is_null(&self) -> bool; fn is_array(&self) -> bool; fn is_document(&self) -> bool; fn is_object(&self) -> bool; fn cast_string(&self) -> String; fn cast_i64(&self) -> i64; fn cast_f64(&self) -> f64; fn cast_u64(&self) -> u64; fn bracket(&self) -> &str; // Provided method fn inner(&self) -> &str { ... }
}
Expand description

convert Value to Value

Required Methods§

Source

fn i32(&self) -> i32

Source

fn i64(&self) -> i64

Source

fn u32(&self) -> u32

Source

fn u64(&self) -> u64

Source

fn f64(&self) -> f64

Source

fn str(&self) -> &str

Source

fn string(&self) -> String

Source

fn bool(&self) -> bool

Source

fn array(&self) -> Option<&Array>

Source

fn object(&self) -> Option<&Document>

Source

fn is_empty(&self) -> bool

Source

fn is_null(&self) -> bool

Source

fn is_array(&self) -> bool

Source

fn is_document(&self) -> bool

Source

fn is_object(&self) -> bool

Source

fn cast_string(&self) -> String

Source

fn cast_i64(&self) -> i64

Source

fn cast_f64(&self) -> f64

Source

fn cast_u64(&self) -> u64

Source

fn bracket(&self) -> &str

bracket(xxxx) inner data

Provided Methods§

Source

fn inner(&self) -> &str

bracket(xxxx) inner data

Implementors§