pub enum RemoteSource {
AniList,
Jikan,
Kitsu,
Tvmaze,
Imdb,
}Expand description
Named variants for the built-in providers.
Using RemoteApi::with_provider with any type implementing Provider is preferred for new
code; this enum exists for ergonomic constructors and serialization.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for RemoteSource
impl Clone for RemoteSource
Source§fn clone(&self) -> RemoteSource
fn clone(&self) -> RemoteSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RemoteSource
impl Debug for RemoteSource
Source§impl From<RemoteSource> for RemoteApi
impl From<RemoteSource> for RemoteApi
Source§fn from(source: RemoteSource) -> Self
fn from(source: RemoteSource) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RemoteSource
impl PartialEq for RemoteSource
Source§fn eq(&self, other: &RemoteSource) -> bool
fn eq(&self, other: &RemoteSource) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for RemoteSource
impl Eq for RemoteSource
impl StructuralPartialEq for RemoteSource
Auto Trait Implementations§
impl Freeze for RemoteSource
impl RefUnwindSafe for RemoteSource
impl Send for RemoteSource
impl Sync for RemoteSource
impl Unpin for RemoteSource
impl UnsafeUnpin for RemoteSource
impl UnwindSafe for RemoteSource
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