pub struct ClientBuilder { /* private fields */ }👎Deprecated since 0.8.1: Use the
thegraph-client-subgraphs crate insteadAvailable on crate feature
subgraph-client only.Expand description
A builder for constructing a subgraph client.
Implementations§
Source§impl ClientBuilder
impl ClientBuilder
Sourcepub fn with_auth_token(self, token: Option<String>) -> Self
👎Deprecated since 0.8.1: Use the thegraph-client-subgraphs crate instead
pub fn with_auth_token(self, token: Option<String>) -> Self
thegraph-client-subgraphs crate insteadSet request authentication token.
By default all requests are issued non-authenticated.
Sourcepub fn with_subgraph_latest_block(self, latest_block: BlockNumber) -> Self
👎Deprecated since 0.8.1: Use the thegraph-client-subgraphs crate instead
pub fn with_subgraph_latest_block(self, latest_block: BlockNumber) -> Self
thegraph-client-subgraphs crate insteadSet the latest block number that the subgraph has progressed to.
The default value is 0.
pub fn build(self) -> Client
👎Deprecated since 0.8.1: Use the
thegraph-client-subgraphs crate insteadAuto Trait Implementations§
impl Freeze for ClientBuilder
impl !RefUnwindSafe for ClientBuilder
impl Send for ClientBuilder
impl Sync for ClientBuilder
impl Unpin for ClientBuilder
impl !UnwindSafe for ClientBuilder
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> 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