pub struct WieldFetcher { /* private fields */ }Expand description
Fetches data from the wield api. The fetcher likely won’t work without an api key so make sure to follow their docs to get an api_key and set set_api_key_from_env_var method to set your api key before trying to use this struct to make calls. You also need to build before using.
Implementations§
Source§impl WieldFetcher
impl WieldFetcher
pub fn set_api_key_from_env_var( self, api_key_var: &str, ) -> Result<Self, ApiKeyError>
pub fn build(self) -> Result<Self, BuildError>
pub async fn fetch_followers(&self, fid: u64) -> Result<Vec<u64>, ImporterError>
pub async fn fetch_follower_response_for_fid( &self, fid: u64, ) -> Result<Response, ImporterError>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for WieldFetcher
impl !UnwindSafe for WieldFetcher
impl Freeze for WieldFetcher
impl Send for WieldFetcher
impl Sync for WieldFetcher
impl Unpin for WieldFetcher
impl UnsafeUnpin for WieldFetcher
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
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more