[−][src]Struct yt_api::search::SearchList
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]
self,
on_behalf_of_content_owner: impl Into<String>
) -> Self
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]
self,
published_before: impl Into<DateTime<Utc>>
) -> Self
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 safe_search(self, safe_search: impl Into<SafeSearch>) -> 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]
self,
video_definition: impl Into<VideoDefinition>
) -> Self
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]
fn clone(&self) -> SearchList[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for SearchList[src]
impl Serialize for SearchList[src]
Auto Trait Implementations
impl Send for SearchList
impl Unpin for SearchList
impl Sync for SearchList
impl UnwindSafe for SearchList
impl RefUnwindSafe for SearchList
Blanket Implementations
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> From<T> for T[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,