pub struct FetchableAssetReference<'a>(/* private fields */);
Implementations§
Methods from Deref<Target = AssetReference>§
Sourcepub fn with_options(&self, options: OciOptions) -> FetchableAssetReference<'_>
pub fn with_options(&self, options: OciOptions) -> FetchableAssetReference<'_>
Embed OciOptions with an AssetReference.
Sourcepub fn get_relative_part(&self) -> Result<PathBuf, Error>
pub fn get_relative_part(&self) -> Result<PathBuf, Error>
Get the relative part of the path or return an error if the path does not exist within the base URL.
pub fn baseurl(&self) -> Option<PathBuf>
pub fn path(&self) -> Result<PathBuf, Error>
pub fn location(&self) -> &str
pub fn is_directory(&self) -> bool
pub async fn bytes(&self, options: &OciOptions) -> Result<Bytes, Error>
Sourcepub fn exists_outside_cache(&self) -> bool
pub fn exists_outside_cache(&self) -> bool
Check if the asset exists on disk and isn’t in the cache.
Trait Implementations§
Source§impl<'a> Clone for FetchableAssetReference<'a>
impl<'a> Clone for FetchableAssetReference<'a>
Source§fn clone(&self) -> FetchableAssetReference<'a>
fn clone(&self) -> FetchableAssetReference<'a>
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<'a> Debug for FetchableAssetReference<'a>
impl<'a> Debug for FetchableAssetReference<'a>
Auto Trait Implementations§
impl<'a> Freeze for FetchableAssetReference<'a>
impl<'a> !RefUnwindSafe for FetchableAssetReference<'a>
impl<'a> Send for FetchableAssetReference<'a>
impl<'a> Sync for FetchableAssetReference<'a>
impl<'a> Unpin for FetchableAssetReference<'a>
impl<'a> !UnwindSafe for FetchableAssetReference<'a>
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