#[non_exhaustive]pub struct TwitterParametersBuilder { /* private fields */ }Expand description
A builder for TwitterParameters.
Implementations§
source§impl TwitterParametersBuilder
impl TwitterParametersBuilder
sourcepub fn query(self, input: impl Into<String>) -> Self
pub fn query(self, input: impl Into<String>) -> Self
Twitter query string.
This field is required.sourcepub fn max_rows(self, input: i32) -> Self
pub fn max_rows(self, input: i32) -> Self
Maximum number of rows to query Twitter.
This field is required.sourcepub fn set_max_rows(self, input: Option<i32>) -> Self
pub fn set_max_rows(self, input: Option<i32>) -> Self
Maximum number of rows to query Twitter.
sourcepub fn get_max_rows(&self) -> &Option<i32>
pub fn get_max_rows(&self) -> &Option<i32>
Maximum number of rows to query Twitter.
sourcepub fn build(self) -> Result<TwitterParameters, BuildError>
pub fn build(self) -> Result<TwitterParameters, BuildError>
Consumes the builder and constructs a TwitterParameters.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for TwitterParametersBuilder
impl Clone for TwitterParametersBuilder
source§fn clone(&self) -> TwitterParametersBuilder
fn clone(&self) -> TwitterParametersBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for TwitterParametersBuilder
impl Debug for TwitterParametersBuilder
source§impl Default for TwitterParametersBuilder
impl Default for TwitterParametersBuilder
source§fn default() -> TwitterParametersBuilder
fn default() -> TwitterParametersBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for TwitterParametersBuilder
impl PartialEq for TwitterParametersBuilder
source§fn eq(&self, other: &TwitterParametersBuilder) -> bool
fn eq(&self, other: &TwitterParametersBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for TwitterParametersBuilder
Auto Trait Implementations§
impl Freeze for TwitterParametersBuilder
impl RefUnwindSafe for TwitterParametersBuilder
impl Send for TwitterParametersBuilder
impl Sync for TwitterParametersBuilder
impl Unpin for TwitterParametersBuilder
impl UnwindSafe for TwitterParametersBuilder
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.