pub struct ClientBuilder { /* private fields */ }
Implementations§
Source§impl ClientBuilder
impl ClientBuilder
Sourcepub fn accept_invalid_certs(self, accept: bool) -> Self
pub fn accept_invalid_certs(self, accept: bool) -> Self
Doesn’t validate ssl certificates of the endpoint.
§Warning
Turning this on allows invalid and expired certificates which is a security risk.
Sourcepub fn endpoint<S: ToString>(self, endpoint: S) -> Self
pub fn endpoint<S: ToString>(self, endpoint: S) -> Self
Sets the endpoint of the client.
The default endpoint is https://ptr.hydrus.network:45871
Sourcepub fn access_key<S: ToString>(self, access_key: S) -> Self
pub fn access_key<S: ToString>(self, access_key: S) -> Self
Sets the access key. This key is required for requests to the PTR.
Trait Implementations§
Auto 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