Struct noodles_refget::Client
source · pub struct Client { /* private fields */ }
Expand description
A refget client.
Implementations§
source§impl Client
impl Client
sourcepub fn new(base_url: Url) -> Self
pub fn new(base_url: Url) -> Self
Creates a new refget client.
§Examples
use noodles_refget as refget;
let client = refget::Client::new("https://localhost/".parse()?);
sourcepub fn with_http_client(http_client: Client, base_url: Url) -> Self
pub fn with_http_client(http_client: Client, base_url: Url) -> Self
Creates a refget client with the given HTTP client.
§Examples
use noodles_refget as refget;
let http_client = reqwest::Client::new();
let base_url = "https://localhost/".parse()?;
let client = refget::Client::with_http_client(http_client, base_url);
sourcepub fn sequence<I>(&self, id: I) -> Builder
pub fn sequence<I>(&self, id: I) -> Builder
Creates a sequence request for the given ID.
§Examples
use noodles_refget as refget;
let client = refget::Client::new("https://localhost/".parse()?);
let sequence_builder = client.sequence("d7eba311421bbc9d3ada44709dd61534");
sourcepub fn sequence_metadata<I>(&self, id: I) -> Builder
pub fn sequence_metadata<I>(&self, id: I) -> Builder
Creates a sequence metadata request for the given ID.
§Examples
use noodles_refget as refget;
let client = refget::Client::new("https://localhost/".parse()?);
let sequence_builder = client.sequence_metadata("d7eba311421bbc9d3ada44709dd61534");
sourcepub fn service_info(&self) -> Builder
pub fn service_info(&self) -> Builder
Creates a service info request.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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