#[non_exhaustive]pub struct TwitterProfileMediaOptions {
pub freshness: Option<Freshness>,
pub cursor: Option<String>,
pub request_options: RequestOptions,
}Expand description
Options for twitter.profile.media.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.freshness: Option<Freshness>Maximum accepted data age. The default is 24h.
cursor: Option<String>Opaque cursor returned by the previous page.
request_options: RequestOptionsRetry and timeout controls for this request.
Implementations§
Source§impl TwitterProfileMediaOptions
impl TwitterProfileMediaOptions
Sourcepub fn freshness(self, value: Freshness) -> Self
pub fn freshness(self, value: Freshness) -> Self
Maximum accepted data age. The default is 24h.
Sourcepub fn cursor(self, value: impl Into<String>) -> Self
pub fn cursor(self, value: impl Into<String>) -> Self
Opaque cursor returned by the previous page.
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 TwitterProfileMediaOptions
impl Clone for TwitterProfileMediaOptions
Source§impl Debug for TwitterProfileMediaOptions
impl Debug for TwitterProfileMediaOptions
Source§impl Default for TwitterProfileMediaOptions
impl Default for TwitterProfileMediaOptions
impl StructuralPartialEq for TwitterProfileMediaOptions
Auto Trait Implementations§
impl Forget for TwitterProfileMediaOptions
impl Freeze for TwitterProfileMediaOptions
impl Move for TwitterProfileMediaOptions
impl RefUnwindSafe for TwitterProfileMediaOptions
impl Send for TwitterProfileMediaOptions
impl Sync for TwitterProfileMediaOptions
impl Unpin for TwitterProfileMediaOptions
impl UnsafeUnpin for TwitterProfileMediaOptions
impl UnwindSafe for TwitterProfileMediaOptions
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