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

pub struct SearchList { /* fields omitted */ }

request struct for the search endpoint

Methods

impl SearchList[src]

pub fn new(key: ApiKey) -> SearchList[src]

create struct with an ApiKey

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

searches for a video, channel or playlist

pub fn for_content_owner(self) -> Self[src]

pub fn for_developer(self) -> Self[src]

pub fn for_mine(self) -> Self[src]

pub fn related_to_video_id(self, related_to_video_id: impl Into<String>) -> Self[src]

pub fn channel_id(self, channel_id: impl Into<String>) -> Self[src]

pub fn channel_type(self, channel_type: impl Into<ChannelType>) -> Self[src]

pub fn event_type(self, event_type: impl Into<EventType>) -> Self[src]

pub fn location(self, location: impl Into<VideoLocation>) -> Self[src]

pub fn location_radius(self, location_radius: impl Into<String>) -> Self[src]

pub fn max_results(self, max_results: impl Into<u8>) -> Self[src]

pub fn on_behalf_of_content_owner(
    self,
    on_behalf_of_content_owner: impl Into<String>
) -> Self
[src]

pub fn order(self, order: impl Into<SearchOrder>) -> Self[src]

pub fn page_token(self, page_token: impl Into<String>) -> Self[src]

pub fn published_after(self, published_after: impl Into<DateTime<Utc>>) -> Self[src]

pub fn published_before(
    self,
    published_before: impl Into<DateTime<Utc>>
) -> Self
[src]

pub fn q(self, q: impl Into<String>) -> Self[src]

pub fn region_code(self, region_code: impl Into<String>) -> Self[src]

pub fn relevance_language(self, relevance_language: impl Into<String>) -> Self[src]

pub fn topic_id(self, topic_id: impl Into<String>) -> Self[src]

pub fn item_type(self, item_type: impl Into<ItemType>) -> Self[src]

pub fn video_caption(self, video_caption: impl Into<String>) -> Self[src]

pub fn video_category_id(self, video_category_id: impl Into<String>) -> Self[src]

pub fn video_definition(
    self,
    video_definition: impl Into<VideoDefinition>
) -> Self
[src]

pub fn video_dimension(self, video_dimension: impl Into<VideoDimension>) -> Self[src]

pub fn video_embeddable(self) -> Self[src]

pub fn video_license(self, video_license: impl Into<VideoLicense>) -> Self[src]

pub fn video_syndicated(self) -> Self[src]

pub fn video_type(self, video_type: impl Into<VideoType>) -> Self[src]

Trait Implementations

impl Clone for SearchList[src]

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, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for 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]