[][src]Struct holochain_json_api::json::RawString

pub struct RawString(_);

generic type to facilitate Jsonifying values directly JsonString simply wraps String and str as-is but will Jsonify RawString("foo") as ""foo"" RawString must not implement Serialize because it should always convert to JsonString with from RawString can implement Deserialize because JsonString uses default serde to step down

Trait Implementations

impl Clone for RawString[src]

impl Debug for RawString[src]

impl<'de> Deserialize<'de> for RawString[src]

impl From<&'static str> for RawString[src]

impl From<RawString> for String[src]

impl From<RawString> for JsonString[src]

it should always be possible to Jsonify RawString, if not something is very wrong

impl From<String> for RawString[src]

impl From<f64> for RawString[src]

impl From<i32> for RawString[src]

impl PartialEq<RawString> for RawString[src]

impl StructuralPartialEq for RawString[src]

impl TryFrom<JsonString> for RawString[src]

converting a JsonString to RawString can fail if the JsonString is not a serialized string

type Error = JsonError

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Clone for T where
    T: Clone
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.