pub struct HumbleApi { /* private fields */ }Implementations§
source§impl HumbleApi
impl HumbleApi
pub fn new(auth_key: &str) -> Self
pub fn list_bundle_keys(&self) -> Result<Vec<String>, ApiError>
pub fn list_bundles(&self) -> Result<Vec<Bundle>, ApiError>
pub fn read_bundle(&self, product_key: &str) -> Result<Bundle, ApiError>
sourcepub fn read_bundle_choices(&self, when: &str) -> Result<HumbleChoice, ApiError>
pub fn read_bundle_choices(&self, when: &str) -> Result<HumbleChoice, ApiError>
Read Bundle Choices for the give month and year.
when should be in the month-year format. For example: "january-2023".
Use "home" to get the current active data.
Auto Trait Implementations§
impl Freeze for HumbleApi
impl RefUnwindSafe for HumbleApi
impl Send for HumbleApi
impl Sync for HumbleApi
impl Unpin for HumbleApi
impl UnwindSafe for HumbleApi
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