pub struct FetcherConfig {
pub allow_path: bool,
pub allow_git: bool,
pub allow_http: bool,
pub allow_onchain: bool,
pub git_config: GitFetcherConfig,
pub onchain_config: OnchainFetcherConfig,
pub cache_config: CacheConfig,
}Fields§
§allow_path: bool§allow_git: bool§allow_http: bool§allow_onchain: bool§git_config: GitFetcherConfig§onchain_config: OnchainFetcherConfig§cache_config: CacheConfigImplementations§
Source§impl FetcherConfig
impl FetcherConfig
pub fn cli_default() -> Self
pub fn wasm_default() -> Self
pub fn production_build() -> Self
pub fn local_only() -> Self
pub fn is_allowed(&self, source: &ImportSource) -> bool
Trait Implementations§
Source§impl Clone for FetcherConfig
impl Clone for FetcherConfig
Source§fn clone(&self) -> FetcherConfig
fn clone(&self) -> FetcherConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FetcherConfig
impl Debug for FetcherConfig
Auto Trait Implementations§
impl Freeze for FetcherConfig
impl RefUnwindSafe for FetcherConfig
impl Send for FetcherConfig
impl Sync for FetcherConfig
impl Unpin for FetcherConfig
impl UnsafeUnpin for FetcherConfig
impl UnwindSafe for FetcherConfig
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