pub struct ExtensionSettings(/* private fields */);Expand description
One extension’s generic JSON-object settings.
Implementations§
Source§impl ExtensionSettings
impl ExtensionSettings
Sourcepub fn new(value: Value) -> Result<Self, ExtensionRegistryError>
pub fn new(value: Value) -> Result<Self, ExtensionRegistryError>
Admits exactly a JSON object, including an empty object.
Sourcepub fn into_value(self) -> Value
pub fn into_value(self) -> Value
Returns the generic object as a JSON value without decoding it.
Sourcepub fn decode<T>(&self) -> Result<T, ExtensionRegistryError>where
T: DeserializeOwned,
pub fn decode<T>(&self) -> Result<T, ExtensionRegistryError>where
T: DeserializeOwned,
Decodes this descriptor-scoped object through a caller-selected typed codec.
Trait Implementations§
Source§impl Clone for ExtensionSettings
impl Clone for ExtensionSettings
Source§fn clone(&self) -> ExtensionSettings
fn clone(&self) -> ExtensionSettings
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExtensionSettings
impl Debug for ExtensionSettings
Source§impl PartialEq for ExtensionSettings
impl PartialEq for ExtensionSettings
impl StructuralPartialEq for ExtensionSettings
Auto Trait Implementations§
impl Freeze for ExtensionSettings
impl RefUnwindSafe for ExtensionSettings
impl Send for ExtensionSettings
impl Sync for ExtensionSettings
impl Unpin for ExtensionSettings
impl UnsafeUnpin for ExtensionSettings
impl UnwindSafe for ExtensionSettings
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).