pub struct PublicApiQuality {
pub items: usize,
pub documented: usize,
pub owe_example: usize,
pub exampled: usize,
pub exempt: Vec<Exemption>,
}Expand description
What the exported item surface looks like.
Fields§
§items: usizeItems the crate exports, of every kind.
documented: usizeOf those, how many carry documentation.
owe_example: usizeHow many owe an executable example under the policy.
exampled: usizeOf those, how many have one that counts.
exempt: Vec<Exemption>How many are exempt from the example policy for a structural reason, and why, by reason, so that the exemptions are visible rather than implied by a subtraction.
Trait Implementations§
Source§impl Clone for PublicApiQuality
impl Clone for PublicApiQuality
Source§fn clone(&self) -> PublicApiQuality
fn clone(&self) -> PublicApiQuality
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 PublicApiQuality
impl Debug for PublicApiQuality
Source§impl Default for PublicApiQuality
impl Default for PublicApiQuality
Source§fn default() -> PublicApiQuality
fn default() -> PublicApiQuality
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PublicApiQuality
impl<'de> Deserialize<'de> for PublicApiQuality
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
impl Eq for PublicApiQuality
Source§impl JsonSchema for PublicApiQuality
impl JsonSchema for PublicApiQuality
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 moreSource§impl PartialEq for PublicApiQuality
impl PartialEq for PublicApiQuality
Source§fn eq(&self, other: &PublicApiQuality) -> bool
fn eq(&self, other: &PublicApiQuality) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PublicApiQuality
impl Serialize for PublicApiQuality
impl StructuralPartialEq for PublicApiQuality
Auto Trait Implementations§
impl Freeze for PublicApiQuality
impl RefUnwindSafe for PublicApiQuality
impl Send for PublicApiQuality
impl Sync for PublicApiQuality
impl Unpin for PublicApiQuality
impl UnsafeUnpin for PublicApiQuality
impl UnwindSafe for PublicApiQuality
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.