pub struct ExtensionSpec {
pub name: NameSpec,
pub description: &'static str,
pub type_id: fn() -> TypeId,
}Expand description
A declared extension requirement on an OperationMetadata.
Fields§
§name: NameSpecHow the runtime name of the required extension is determined.
description: &'static strA human-readable description of what the operation needs from the extension.
type_id: fn() -> TypeIdA factory that produces the TypeId of the extension type.
Stored as a function rather than a value because TypeId::of
is only const on recent compilers.
Trait Implementations§
Source§impl Clone for ExtensionSpec
impl Clone for ExtensionSpec
Source§fn clone(&self) -> ExtensionSpec
fn clone(&self) -> ExtensionSpec
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ExtensionSpec
impl RefUnwindSafe for ExtensionSpec
impl Send for ExtensionSpec
impl Sync for ExtensionSpec
impl Unpin for ExtensionSpec
impl UnsafeUnpin for ExtensionSpec
impl UnwindSafe for ExtensionSpec
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