[][src]Module brawl_api::traits

Traits used by the library. Those are of mostly internal use and normally shouldn't need implementation by some user-made type.

Note that it is recommended to always import this module for things to work fine, such as using X::fetch methods, where X is any model implementing PropFetchable or PropLimFetchable (there are some that do not implement either, and rather have their own implementation of a fetch function, because they have 3 or more parameters).

Re-exports

pub use propfetch::*;
pub use proplimfetch::*;

Modules

propfetch
proplimfetch

Traits

FetchFrom

A trait indicating that another type can be converted into this one by fetching from the API. Note that, thanks to a blanket implementation, implementing this implies implementing FetchInto for the other type.

FetchInto

A trait indicating that this type can be converted into another by fetching from the API. Note that FetchFrom should be implemented, in order to apply the respective blanket implementation of this trait.

Refetchable

A trait representing a type whose instance can be fetched again. Note that all types implementing GetFetchProp and PropFetchable also implement Refetchable due to a blanket implementation.