pub struct MonthlyCalendarRequest {
pub what: CalendarKind,
pub year: u16,
pub month: u8,
}Expand description
Request for a monthly calendar page.
Unlike other API endpoints, the calendar lives on the data.simkl.in
CDN under a fixed URL layout — there are no query parameters. This
type therefore implements a small ad-hoc surface (just build_url)
rather than crate::request::SimklRequest, which is tailored to the
api.simkl.com prefix + query-string style.
§Example
use simkl::calendar::{CalendarKind, MonthlyCalendarRequest};
let url = MonthlyCalendarRequest::new(CalendarKind::Movie, 2025, 1).build_url();
assert_eq!(url, "https://data.simkl.in/calendar/2025/1/movie_release.json");Fields§
§what: CalendarKind§year: u164-digit year (e.g. 2025).
month: u81..=12 (1 = January). Values outside that range produce a URL the server will reject; validation is the caller’s responsibility.
Implementations§
Trait Implementations§
Source§impl Clone for MonthlyCalendarRequest
impl Clone for MonthlyCalendarRequest
Source§fn clone(&self) -> MonthlyCalendarRequest
fn clone(&self) -> MonthlyCalendarRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MonthlyCalendarRequest
Source§impl Debug for MonthlyCalendarRequest
impl Debug for MonthlyCalendarRequest
impl Eq for MonthlyCalendarRequest
Source§impl PartialEq for MonthlyCalendarRequest
impl PartialEq for MonthlyCalendarRequest
impl StructuralPartialEq for MonthlyCalendarRequest
Auto Trait Implementations§
impl Freeze for MonthlyCalendarRequest
impl RefUnwindSafe for MonthlyCalendarRequest
impl Send for MonthlyCalendarRequest
impl Sync for MonthlyCalendarRequest
impl Unpin for MonthlyCalendarRequest
impl UnsafeUnpin for MonthlyCalendarRequest
impl UnwindSafe for MonthlyCalendarRequest
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