pub enum MatchSource {
KitsuDump {
dump_path: PathBuf,
},
RemoteEndpoint {
endpoint: String,
},
}Expand description
Backend choice for canonical title matching.
§Examples
use zantetsu_vecdb::MatchSource;
let local = MatchSource::kitsu_dump("/tmp/kitsu-dumps");
let remote = MatchSource::remote_endpoint("https://graphql.anilist.co");
let _ = (local, remote);Variants§
KitsuDump
Use a local Kitsu SQL dump located at dump_path.
Fields
RemoteEndpoint
Use a remote GraphQL endpoint.
Implementations§
Source§impl MatchSource
impl MatchSource
Sourcepub fn kitsu_dump(dump_path: impl Into<PathBuf>) -> Self
pub fn kitsu_dump(dump_path: impl Into<PathBuf>) -> Self
Use the local Kitsu dump at the provided path.
Sourcepub fn remote_endpoint(endpoint: impl Into<String>) -> Self
pub fn remote_endpoint(endpoint: impl Into<String>) -> Self
Use a remote GraphQL endpoint.
Trait Implementations§
Source§impl Clone for MatchSource
impl Clone for MatchSource
Source§fn clone(&self) -> MatchSource
fn clone(&self) -> MatchSource
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for MatchSource
impl RefUnwindSafe for MatchSource
impl Send for MatchSource
impl Sync for MatchSource
impl Unpin for MatchSource
impl UnsafeUnpin for MatchSource
impl UnwindSafe for MatchSource
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