pub struct Native(pub BTreeMap<String, NativeNamespace>);Expand description
Native records grouped by source-format namespace id.
Tuple Fields§
§0: BTreeMap<String, NativeNamespace>Implementations§
Source§impl Native
impl Native
Sourcepub fn namespace(&self, format: &str) -> Option<&NativeNamespace>
pub fn namespace(&self, format: &str) -> Option<&NativeNamespace>
Return a source-format namespace.
Sourcepub fn namespace_mut(
&mut self,
format: impl Into<String>,
) -> &mut NativeNamespace
pub fn namespace_mut( &mut self, format: impl Into<String>, ) -> &mut NativeNamespace
Return or create a source-format namespace.
Sourcepub fn loss_counts(&self) -> Vec<LossCount>
pub fn loss_counts(&self) -> Vec<LossCount>
Return one count for each non-empty native arena.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Native
impl<'de> Deserialize<'de> for Native
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
Source§impl JsonSchema for Native
impl JsonSchema for Native
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for Native
Auto Trait Implementations§
impl Freeze for Native
impl RefUnwindSafe for Native
impl Send for Native
impl Sync for Native
impl Unpin for Native
impl UnsafeUnpin for Native
impl UnwindSafe for Native
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