[][src]Struct yt_api::search::SearchList

pub struct SearchList { /* fields omitted */ }

request struct for the search endpoint

Methods

impl SearchList[src]

pub fn builder(
) -> TypedBuilder_BuilderFor_SearchList<(), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), ()>
[src]

Create a builder for building SearchList. On the builder, call .key(...), .part(...)(optional), .for_content_owner(...)(optional), .for_developer(...)(optional), .for_mine(...)(optional), .related_to_video_id(...)(optional), .channel_id(...)(optional), .channel_type(...)(optional), .event_type(...)(optional), .location(...)(optional), .location_radius(...)(optional), .max_results(...)(optional), .on_behalf_of_content_owner(...)(optional), .order(...)(optional), .page_token(...)(optional), .published_after(...)(optional), .published_before(...)(optional), .q(...)(optional), .region_code(...)(optional), .relevance_language(...)(optional), .safe_search(...)(optional), .topic_id(...)(optional), .item_type(...)(optional), .video_caption(...)(optional), .video_category_id(...)(optional), .video_definition(...)(optional), .video_dimension(...)(optional), .video_embeddable(...)(optional), .video_license(...)(optional), .video_syndicated(...)(optional), .video_type(...)(optional) to set the values of the fields(they accept Into values). Finally, call .build() to create the instance of SearchList.

impl SearchList[src]

pub async fn perform<'_>(&'_ self) -> Result<SearchListResponse, Error>[src]

shorthand to perform the search with implicit reqwest::async::Client creation

pub async fn perform_with<'_>(
    &'_ self,
    client: Client
) -> Result<SearchListResponse, Error>
[src]

searches for a video, channel or playlist

Trait Implementations

impl Clone for SearchList[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for SearchList[src]

impl Serialize for SearchList[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err