pub struct JsonData { /* private fields */ }
Implementations§
Source§impl JsonData
impl JsonData
Sourcepub fn new(s: String) -> Result<Self>
pub fn new(s: String) -> Result<Self>
Create a new render_options.
§Example
use std::env;
use carbone_sdk_rust::types::JsonData;
use carbone_sdk_rust::errors::CarboneError;
fn main() -> Result<(), CarboneError> {
let render_options_value = r#"
"data" : {
"firstname" : "John",
"lastname" : "Wick"
},
"convertTo" : "odt"
"#;
let render_options = JsonData::new(render_options_value.to_string())?;
assert_eq!(render_options.as_str(), render_options_value);
Ok(())
}
pub fn as_str(&self) -> &str
Trait Implementations§
impl Eq for JsonData
impl StructuralPartialEq for JsonData
Auto Trait Implementations§
impl Freeze for JsonData
impl RefUnwindSafe for JsonData
impl Send for JsonData
impl Sync for JsonData
impl Unpin for JsonData
impl UnwindSafe for JsonData
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.