Skip to main content

Crate pogo_masterfile

Crate pogo_masterfile 

Source
Expand description

Generated from Pokémon GO masterfile — runtime API.

Crate root. The hand-written templates (masterfile.rs, error.rs, fetcher.rs, builder.rs, blocking.rs) are copied verbatim by codegen; everything in THIS file (per-group accessor methods, the GroupIndexes storage struct, upstream re-exports) is regenerated on every bun run generate.

Re-exports§

pub use crate::builder::MasterfileBuilder;
pub use crate::error::Error;
pub use crate::error::Result;
pub use crate::fetcher::DEFAULT_MASTERFILE_URL;
pub use crate::fetcher::Fetcher;
pub use crate::fetcher::ReqwestFetcher;

Modules§

accessor
Generated from Pokémon GO masterfile — per-group accessor modules.
blocking
Blocking-flavored Masterfile. Same struct fields, sync from_remote and refresh. The per-group accessor methods are appended by codegen in lib.rs (inside an #[cfg(feature = "blocking")] impl block).
builder
Builder for Masterfile::from_remote — handles URL/timeout/fetcher overrides.
error
Crate-level error type. One enum, one variant per real failure mode.
fetcher
Fetcher abstraction + the default reqwest-backed implementation.

Structs§

Masterfile
UnknownTemplateId
Error returned by FromStr impls on generated templateId enums when the input string does not match any known templateId for the group.

Enums§

MasterfileEntry
Every typed entry the Pokémon GO masterfile can hold.

Functions§

parse_masterfile
Parse a masterfile JSON string into a vector of typed entries.