pub struct LensClient {
pub queries: Queries,
pub endpoint: String,
pub chain: Chain,
pub net: Net,
pub access_token: Option<String>,
pub refresh_token: Option<String>,
}Fields§
§queries: Queries§endpoint: String§chain: Chain§net: Net§access_token: Option<String>§refresh_token: Option<String>Implementations§
Source§impl LensClient
Constructs a new LensClient
impl LensClient
Constructs a new LensClient
Sourcepub fn new(chain: Chain, net: Net) -> LensClient
pub fn new(chain: Chain, net: Net) -> LensClient
Sourcepub fn get_profiles_by_address(
&self,
address: String,
) -> Result<AddressProfiles, String>
pub fn get_profiles_by_address( &self, address: String, ) -> Result<AddressProfiles, String>
Sourcepub fn get_following(
&self,
address: String,
limit: u64,
) -> Result<FollowingData, String>
pub fn get_following( &self, address: String, limit: u64, ) -> Result<FollowingData, String>
Sourcepub fn get_followers(
&self,
profile_id: String,
limit: u64,
) -> Result<FollowersData, String>
pub fn get_followers( &self, profile_id: String, limit: u64, ) -> Result<FollowersData, String>
Sourcepub fn create_profile(
&self,
handle: String,
) -> Result<CreateProfileData, String>
pub fn create_profile( &self, handle: String, ) -> Result<CreateProfileData, String>
pub fn make_request( &self, q: Query, headers: Option<Vec<Value>>, ) -> Result<Response, Option<String>>
Auto Trait Implementations§
impl Freeze for LensClient
impl RefUnwindSafe for LensClient
impl Send for LensClient
impl Sync for LensClient
impl Unpin for LensClient
impl UnwindSafe for LensClient
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
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> 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