pub struct FetcherBuilder {
pub host: Host,
pub client: Option<Client>,
pub provider_scope: String,
}
Fields§
§host: Host
The host
client: Option<Client>
§provider_scope: String
The jsr provider scope on npm-side. Defaults to jsr
NOTE: This is DIFFERENT than normal package scope
See https://jsr.io/docs/api#npm-compatibility-registry-api
Implementations§
Source§impl FetcherBuilder
impl FetcherBuilder
Sourcepub fn set_client(self, value: impl AsRef<Client>) -> Self
pub fn set_client(self, value: impl AsRef<Client>) -> Self
Sourcepub fn set_provider_scope(self, value: impl AsRef<String>) -> Self
pub fn set_provider_scope(self, value: impl AsRef<String>) -> Self
Set the provider scope (for npm-side)
Trait Implementations§
Source§impl Clone for FetcherBuilder
impl Clone for FetcherBuilder
Source§fn clone(&self) -> FetcherBuilder
fn clone(&self) -> FetcherBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for FetcherBuilder
impl Debug for FetcherBuilder
Source§impl Default for FetcherBuilder
impl Default for FetcherBuilder
Source§impl GetProviderScope for FetcherBuilder
impl GetProviderScope for FetcherBuilder
fn get_provider_scope(&self) -> &str
Auto Trait Implementations§
impl Freeze for FetcherBuilder
impl !RefUnwindSafe for FetcherBuilder
impl Send for FetcherBuilder
impl Sync for FetcherBuilder
impl Unpin for FetcherBuilder
impl !UnwindSafe for FetcherBuilder
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