pub struct ExtensionDeclaration {
pub name: String,
pub version: String,
pub optional: bool,
}Expand description
An entry in the core:extensions array declaring a SigMF extension.
Each extension whose namespace is used in a metadata file should be declared so readers know which extension specification (and version) to apply and whether they may safely ignore it.
Fields§
§name: StringExtension namespace name, e.g. antenna (name).
version: StringVersion of the extension specification in use (version).
optional: boolWhether the extension may be ignored by readers that do not support it
(optional); false means the extension is required to interpret the
recording correctly.
Trait Implementations§
Source§impl Clone for ExtensionDeclaration
impl Clone for ExtensionDeclaration
Source§fn clone(&self) -> ExtensionDeclaration
fn clone(&self) -> ExtensionDeclaration
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 ExtensionDeclaration
impl Debug for ExtensionDeclaration
Source§impl<'de> Deserialize<'de> for ExtensionDeclaration
impl<'de> Deserialize<'de> for ExtensionDeclaration
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 Freeze for ExtensionDeclaration
impl RefUnwindSafe for ExtensionDeclaration
impl Send for ExtensionDeclaration
impl Sync for ExtensionDeclaration
impl Unpin for ExtensionDeclaration
impl UnsafeUnpin for ExtensionDeclaration
impl UnwindSafe for ExtensionDeclaration
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more