[−][src]Struct holochain_json_api::json::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]
fn clone(&self) -> RawString
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl From<&'static str> for RawString
[src]
impl From<String> for RawString
[src]
impl From<f64> for RawString
[src]
impl From<i32> 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
fn from(raw_string: RawString) -> JsonString
[src]
impl PartialEq<RawString> for RawString
[src]
impl Debug 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.
fn try_from(j: JsonString) -> JsonResult<Self>
[src]
impl<'de> Deserialize<'de> for RawString
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Unpin for RawString
impl Sync for RawString
impl Send for RawString
impl UnwindSafe for RawString
impl RefUnwindSafe for RawString
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,