pub struct Configuration(/* private fields */);Expand description
Configuration data for the extension, from the gateway toml config.
Implementations§
Source§impl Configuration
impl Configuration
Sourcepub fn deserialize<'de, T>(&'de self) -> Result<T, Box<dyn Error>>where
T: Deserialize<'de>,
pub fn deserialize<'de, T>(&'de self) -> Result<T, Box<dyn Error>>where
T: Deserialize<'de>,
Deserializes the configuration bytes into the requested type.
§Errors
Returns an error if deserialization fails.
Auto Trait Implementations§
impl Freeze for Configuration
impl RefUnwindSafe for Configuration
impl Send for Configuration
impl Sync for Configuration
impl Unpin for Configuration
impl UnwindSafe for Configuration
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