#[non_exhaustive]pub struct Extension {Show 20 fields
pub name: String,
pub comment: Option<String>,
pub number: Option<i64>,
pub protect: Option<String>,
pub platform: Option<String>,
pub author: Option<String>,
pub contact: Option<String>,
pub ext_type: Option<String>,
pub requires: Option<String>,
pub requires_core: Option<String>,
pub supported: Option<String>,
pub ratified: Option<String>,
pub deprecatedby: Option<String>,
pub promotedto: Option<String>,
pub obsoletedby: Option<String>,
pub provisional: bool,
pub specialuse: Option<String>,
pub sortorder: Option<i64>,
pub depends: Option<String>,
pub children: Vec<ExtensionChild>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.name: String
Name of the extension.
comment: Option<String>
Human-readable description.
number: Option<i64>
The unique index of this extension.
protect: Option<String>
§platform: Option<String>
Which platform it works with, if any.
Tag name of the author.
contact: Option<String>
Contact information for extension author(s).
ext_type: Option<String>
The level at which the extension applies (instance / device).
requires: Option<String>
§requires_core: Option<String>
§supported: Option<String>
§ratified: Option<String>
§deprecatedby: Option<String>
§promotedto: Option<String>
Whether this extension was promoted to core, and in which version.
obsoletedby: Option<String>
§provisional: bool
‘true’ if this extension is released provisionally
specialuse: Option<String>
The items which make up this extension.
sortorder: Option<i64>
Relative sortorder
depends: Option<String>
§children: Vec<ExtensionChild>
The items which make up this extension.
Trait Implementations§
source§impl PartialEq<Extension> for Extension
impl PartialEq<Extension> for Extension
impl Eq for Extension
impl StructuralEq for Extension
impl StructuralPartialEq for Extension
Auto Trait Implementations§
impl RefUnwindSafe for Extension
impl Send for Extension
impl Sync for Extension
impl Unpin for Extension
impl UnwindSafe for Extension
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