[−][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]
impl Debug for RawString
[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>,
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
fn from(raw_string: RawString) -> JsonString
[src]
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.
fn try_from(j: JsonString) -> JsonResult<Self>
[src]
Auto Trait Implementations
impl RefUnwindSafe for RawString
impl Send for RawString
impl Sync for RawString
impl Unpin for RawString
impl UnwindSafe for RawString
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> Clone for T where
T: Clone,
[src]
T: Clone,
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
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> 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>,