Enum json_gettext::Value [−][src]
Variants
Str(&'a str)JSONValue(Value)JSONValueRef(&'a Value)
Methods
impl<'a> Value<'a>[src]
impl<'a> Value<'a>pub fn from_str(s: &'a str) -> Value<'a>[src]
pub fn from_str(s: &'a str) -> Value<'a>pub fn from_string(s: String) -> Value<'a>[src]
pub fn from_string(s: String) -> Value<'a>pub fn from_bool(b: bool) -> Value<'a>[src]
pub fn from_bool(b: bool) -> Value<'a>pub fn from_i64(n: i64) -> Value<'a>[src]
pub fn from_i64(n: i64) -> Value<'a>pub fn from_u64(n: u64) -> Value<'a>[src]
pub fn from_u64(n: u64) -> Value<'a>pub fn from_f64(n: f64) -> Value<'a>[src]
pub fn from_f64(n: f64) -> Value<'a>pub fn from_json_value(v: Value) -> Value<'a>[src]
pub fn from_json_value(v: Value) -> Value<'a>pub fn from_json_value_ref(v: &'a Value) -> Value<'a>[src]
pub fn from_json_value_ref(v: &'a Value) -> Value<'a>pub fn null() -> Value<'a>[src]
pub fn null() -> Value<'a>pub fn to_json(&self) -> String[src]
pub fn to_json(&self) -> StringConvert to a string for JSON format.
pub fn as_str(&self) -> Option<&str>[src]
pub fn as_str(&self) -> Option<&str>Convert to a string slice if it is possible (if it is a string).
Trait Implementations
impl<'a> Debug for Value<'a>[src]
impl<'a> Debug for Value<'a>fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<'a> Clone for Value<'a>[src]
impl<'a> Clone for Value<'a>fn clone(&self) -> Value<'a>[src]
fn clone(&self) -> Value<'a>Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl<'a> PartialEq for Value<'a>[src]
impl<'a> PartialEq for Value<'a>fn eq(&self, other: &Value<'a>) -> bool[src]
fn eq(&self, other: &Value<'a>) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Value<'a>) -> bool[src]
fn ne(&self, other: &Value<'a>) -> boolThis method tests for !=.
impl<'a> Serialize for Value<'a>[src]
impl<'a> Serialize for Value<'a>fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer, [src]
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer, Serialize this value into the given Serde serializer. Read more
impl<'a> PartialEq<Value<'a>> for str[src]
impl<'a> PartialEq<Value<'a>> for strfn eq(&self, other: &Value) -> bool[src]
fn eq(&self, other: &Value) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> bool1.0.0
[src]This method tests for !=.
impl<'a> PartialEq<Value<'a>> for &'a str[src]
impl<'a> PartialEq<Value<'a>> for &'a strfn eq(&self, other: &Value) -> bool[src]
fn eq(&self, other: &Value) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> bool1.0.0
[src]This method tests for !=.
impl<'a> Display for Value<'a>[src]
impl<'a> Display for Value<'a>