pub struct Config(/* private fields */);Expand description
Component configuration as CBOR bytes.
Implementations§
Source§impl Config
impl Config
Sourcepub fn from_json_opt(value: &Option<Value>) -> Result<Option<Self>, CborError>
pub fn from_json_opt(value: &Option<Value>) -> Result<Option<Self>, CborError>
Convert from an optional JSON value.
Sourcepub fn deserialize<T: DeserializeOwned>(&self) -> Result<T, CborError>
pub fn deserialize<T: DeserializeOwned>(&self) -> Result<T, CborError>
Deserialize into a typed value.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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