pub struct ExtensionInfo<'a> { /* private fields */ }Expand description
Detailed information about an extension.
Implementations§
Source§impl<'a> ExtensionInfo<'a>
impl<'a> ExtensionInfo<'a>
Sourcepub fn builder(
id: impl Into<Cow<'a, str>>,
name: impl Into<Cow<'a, str>>,
version: impl Into<Cow<'a, str>>,
path: impl Into<Cow<'a, str>>,
enabled: bool,
) -> ExtensionInfoBuilder<'a>
pub fn builder( id: impl Into<Cow<'a, str>>, name: impl Into<Cow<'a, str>>, version: impl Into<Cow<'a, str>>, path: impl Into<Cow<'a, str>>, enabled: bool, ) -> ExtensionInfoBuilder<'a>
Creates a builder for this type with the required parameters:
id: Extension id.name: Extension name.version: Extension version.path: The path from which the extension was loaded.enabled: Extension enabled status.
Trait Implementations§
Source§impl<'a> Clone for ExtensionInfo<'a>
impl<'a> Clone for ExtensionInfo<'a>
Source§fn clone(&self) -> ExtensionInfo<'a>
fn clone(&self) -> ExtensionInfo<'a>
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<'a> Debug for ExtensionInfo<'a>
impl<'a> Debug for ExtensionInfo<'a>
Source§impl<'a> Default for ExtensionInfo<'a>
impl<'a> Default for ExtensionInfo<'a>
Source§fn default() -> ExtensionInfo<'a>
fn default() -> ExtensionInfo<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for ExtensionInfo<'a>
impl<'de, 'a> Deserialize<'de> for ExtensionInfo<'a>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<'a> Freeze for ExtensionInfo<'a>
impl<'a> RefUnwindSafe for ExtensionInfo<'a>
impl<'a> Send for ExtensionInfo<'a>
impl<'a> Sync for ExtensionInfo<'a>
impl<'a> Unpin for ExtensionInfo<'a>
impl<'a> UnsafeUnpin for ExtensionInfo<'a>
impl<'a> UnwindSafe for ExtensionInfo<'a>
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