Struct caniuse_serde::CanIUse
[−]
[src]
pub struct CanIUse { /* fields omitted */ }
A database of data relating to caniuse.com Not used directly, but references should be passed to methods on AgentName, FeatureName, EraName, and, less usefully, Status and ParentCategory.
Methods
impl CanIUse
[src]
fn from_path<P: AsRef<Path>>(
can_i_use_database_file_path: P
) -> Result<Self, Box<Error>>
[src]
can_i_use_database_file_path: P
) -> Result<Self, Box<Error>>
Deserialize a CanIUse database from a file path to a data-2.0.json
file (typically in fulldata-json/
).
fn from_reader<R: Read>(
reader_of_stream_of_can_i_use_json_bytes: R
) -> Result<Self, Box<Error>>
[src]
reader_of_stream_of_can_i_use_json_bytes: R
) -> Result<Self, Box<Error>>
Deserialize a CanIUse database from a readable stream of raw JSON bytes.
fn from_slice(raw_can_i_use_json_bytes: &[u8]) -> Result<Self, Error>
[src]
Deserialize a CanIUse database from a slice of raw JSON bytes.
fn last_updated(&self) -> DateTime<Utc>
[src]
A timestamp of when this particular database was last updated.
fn known_agent_names(&self) -> AgentNameIterator
[src]
An iterator over the AgentNames known in this caniuse.com database
fn known_statuses(&self) -> StatusIterator
[src]
An iterator over the AgentNames known in this caniuse.com database
fn known_parent_categories(&self) -> ParentCategoryIterator
[src]
An iterator over the AgentNames known in this caniuse.com database
fn known_feature_names(&self) -> FeatureNameIterator
[src]
An iterator over the AgentNames known in this caniuse.com database
Trait Implementations
impl Debug for CanIUse
[src]
impl Clone for CanIUse
[src]
fn clone(&self) -> CanIUse
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for CanIUse
[src]
fn default() -> Self
[src]
Defaults to the up-to-date version of the caniuse.com database shipped embedded in this crate.