#[non_exhaustive]pub struct YouTubeChartsTracksOptions {
pub country: Option<String>,
pub freshness: Option<Freshness>,
pub request_options: RequestOptions,
}Expand description
Options for youtube.charts.tracks.list.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.country: Option<String>Two-letter ISO 3166 country code. The default is US.
freshness: Option<Freshness>Maximum accepted data age. The default is 24h.
request_options: RequestOptionsRetry and timeout controls for this request.
Implementations§
Source§impl YouTubeChartsTracksOptions
impl YouTubeChartsTracksOptions
Sourcepub fn country(self, value: impl Into<String>) -> Self
pub fn country(self, value: impl Into<String>) -> Self
Two-letter ISO 3166 country code. The default is US.
Sourcepub fn freshness(self, value: Freshness) -> Self
pub fn freshness(self, value: Freshness) -> Self
Maximum accepted data age. The default is 24h.
Sourcepub fn max_retries(self, value: u32) -> Self
pub fn max_retries(self, value: u32) -> Self
Sets the retry attempts after the first request.
Trait Implementations§
Source§impl Clone for YouTubeChartsTracksOptions
impl Clone for YouTubeChartsTracksOptions
Source§impl Debug for YouTubeChartsTracksOptions
impl Debug for YouTubeChartsTracksOptions
Source§impl Default for YouTubeChartsTracksOptions
impl Default for YouTubeChartsTracksOptions
impl StructuralPartialEq for YouTubeChartsTracksOptions
Auto Trait Implementations§
impl Forget for YouTubeChartsTracksOptions
impl Freeze for YouTubeChartsTracksOptions
impl Move for YouTubeChartsTracksOptions
impl RefUnwindSafe for YouTubeChartsTracksOptions
impl Send for YouTubeChartsTracksOptions
impl Sync for YouTubeChartsTracksOptions
impl Unpin for YouTubeChartsTracksOptions
impl UnsafeUnpin for YouTubeChartsTracksOptions
impl UnwindSafe for YouTubeChartsTracksOptions
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