Skip to main content

Masterfile

Struct Masterfile 

Source
pub struct Masterfile { /* private fields */ }

Implementations§

Source§

impl Masterfile

Source

pub fn builder() -> MasterfileBuilder

Source

pub async fn from_remote() -> Result<Self>

Convenience: equivalent to Masterfile::builder().fetch().await.

Source

pub fn from_json(json: &str) -> Result<Self>

Parse from a JSON string. Sync — no I/O.

Source

pub fn from_entries(entries: Vec<MasterfileEntry>) -> Self

Wrap an already-parsed entry vec.

Source

pub fn get_entry(&self, id: &str) -> Option<&MasterfileEntry>

Source

pub fn has(&self, id: &str) -> bool

Source

pub fn entries(&self) -> &[MasterfileEntry]

Source

pub fn len(&self) -> usize

Source

pub fn is_empty(&self) -> bool

Source

pub fn iter(&self) -> Iter<'_, MasterfileEntry>

Source

pub fn template_ids(&self) -> impl Iterator<Item = &str> + '_

Source

pub async fn refresh(&mut self) -> Result<()>

Source

pub fn update(&mut self, entries: Vec<MasterfileEntry>)

Source§

impl Masterfile

Source

pub fn avatar_customization(&self) -> AvatarCustomizationAccessor<'_>

Source

pub fn avatar_group_order_settings( &self, ) -> AvatarGroupOrderSettingsAccessor<'_>

Source

pub fn avatar_item_display(&self) -> AvatarItemDisplayAccessor<'_>

Source

pub fn badge_settings(&self) -> BadgeSettingsAccessor<'_>

Source

pub fn bread_move_level_settings(&self) -> BreadMoveLevelSettingsAccessor<'_>

Source

pub fn buddy_activity_category_settings( &self, ) -> BuddyActivityCategorySettingsAccessor<'_>

Source

pub fn buddy_emotion_level_settings( &self, ) -> BuddyEmotionLevelSettingsAccessor<'_>

Source

pub fn buddy_level_settings(&self) -> BuddyLevelSettingsAccessor<'_>

Source

pub fn client_quest_template(&self) -> ClientQuestTemplateAccessor<'_>

Source

pub fn code_gate_proto(&self) -> CodeGateProtoAccessor<'_>

Source

pub fn combat_league(&self) -> CombatLeagueAccessor<'_>

Source

pub fn combat_move(&self) -> CombatMoveAccessor<'_>

Source

pub fn combat_npc_personality(&self) -> CombatNpcPersonalityAccessor<'_>

Source

pub fn combat_npc_trainer(&self) -> CombatNpcTrainerAccessor<'_>

Source

pub fn combat_ranking_proto_settings( &self, ) -> CombatRankingProtoSettingsAccessor<'_>

Source

pub fn combat_type(&self) -> CombatTypeAccessor<'_>

Source

pub fn event_pass_settings(&self) -> EventPassSettingsAccessor<'_>

Source

pub fn event_pass_tier_settings(&self) -> EventPassTierSettingsAccessor<'_>

Source

pub fn evolution_chain_display_settings( &self, ) -> EvolutionChainDisplaySettingsAccessor<'_>

Source

pub fn evolution_quest_template(&self) -> EvolutionQuestTemplateAccessor<'_>

Source

pub fn feature_gate(&self) -> FeatureGateAccessor<'_>

Source

pub fn form_settings(&self) -> FormSettingsAccessor<'_>

Source

pub fn fort_power_up_level_settings( &self, ) -> FortPowerUpLevelSettingsAccessor<'_>

Source

pub fn friendship_milestone_settings( &self, ) -> FriendshipMilestoneSettingsAccessor<'_>

Source

pub fn gender_settings(&self) -> GenderSettingsAccessor<'_>

Source

pub fn iap_category_display(&self) -> IapCategoryDisplayAccessor<'_>

Source

pub fn iap_item_display(&self) -> IapItemDisplayAccessor<'_>

Source

pub fn invasion_npc_display_settings( &self, ) -> InvasionNpcDisplaySettingsAccessor<'_>

Source

pub fn item_expiration_settings(&self) -> ItemExpirationSettingsAccessor<'_>

Source

pub fn item_settings(&self) -> ItemSettingsAccessor<'_>

Source

pub fn language_settings(&self) -> LanguageSettingsAccessor<'_>

Source

pub fn level_up_rewards(&self) -> LevelUpRewardsAccessor<'_>

Source

pub fn limited_purchase_sku_settings( &self, ) -> LimitedPurchaseSkuSettingsAccessor<'_>

Source

pub fn location_card_settings(&self) -> LocationCardSettingsAccessor<'_>

Source

pub fn mega_evo_level_settings(&self) -> MegaEvoLevelSettingsAccessor<'_>

Source

pub fn move_sequence_settings(&self) -> MoveSequenceSettingsAccessor<'_>

Source

pub fn move_settings(&self) -> MoveSettingsAccessor<'_>

Source

pub fn non_combat_move_settings(&self) -> NonCombatMoveSettingsAccessor<'_>

Source

pub fn party_play_general_settings( &self, ) -> PartyPlayGeneralSettingsAccessor<'_>

Source

pub fn photo_sets_settings_proto(&self) -> PhotoSetsSettingsProtoAccessor<'_>

Source

pub fn pokemon_extended_settings(&self) -> PokemonExtendedSettingsAccessor<'_>

Source

pub fn pokemon_family(&self) -> PokemonFamilyAccessor<'_>

Source

pub fn pokemon_home_energy_costs(&self) -> PokemonHomeEnergyCostsAccessor<'_>

Source

pub fn pokemon_home_form_reversions( &self, ) -> PokemonHomeFormReversionsAccessor<'_>

Source

pub fn pokemon_scale_settings(&self) -> PokemonScaleSettingsAccessor<'_>

Source

pub fn pokemon_settings(&self) -> PokemonSettingsAccessor<'_>

Source

pub fn pokemon_upgrades(&self) -> PokemonUpgradesAccessor<'_>

Source

pub fn pokestop_invasion_availability_settings( &self, ) -> PokestopInvasionAvailabilitySettingsAccessor<'_>

Source

pub fn quest_settings(&self) -> QuestSettingsAccessor<'_>

Source

pub fn recommended_search_settings( &self, ) -> RecommendedSearchSettingsAccessor<'_>

Source

pub fn roll_back(&self) -> RollBackAccessor<'_>

Source

pub fn settings_override_rule(&self) -> SettingsOverrideRuleAccessor<'_>

Source

pub fn sticker_metadata(&self) -> StickerMetadataAccessor<'_>

Source

pub fn tappable_settings(&self) -> TappableSettingsAccessor<'_>

Source

pub fn temporary_evolution_settings( &self, ) -> TemporaryEvolutionSettingsAccessor<'_>

Source

pub fn type_effective(&self) -> TypeEffectiveAccessor<'_>

Source

pub fn vs_seeker_loot(&self) -> VsSeekerLootAccessor<'_>

Source

pub fn vs_seeker_pokemon_rewards(&self) -> VsSeekerPokemonRewardsAccessor<'_>

Source

pub fn weather_affinities(&self) -> WeatherAffinitiesAccessor<'_>

Trait Implementations§

Source§

impl<'a> IntoIterator for &'a Masterfile

Source§

type Item = &'a MasterfileEntry

The type of the elements being iterated over.
Source§

type IntoIter = Iter<'a, MasterfileEntry>

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more