pub struct ResourceResolution {
pub content: String,
pub mime_type: String,
pub final_uri: String,
pub size: usize,
pub from_cache: bool,
pub metadata: ResolutionMetadata,
}Expand description
Resource resolution result
Fields§
§content: StringResolved content
mime_type: StringMIME type of resolved content
final_uri: StringFinal URI after resolution (may differ from original due to redirects)
size: usizeSize of resolved content in bytes
from_cache: boolWhether content was retrieved from cache
metadata: ResolutionMetadataResolution metadata
Trait Implementations§
Source§impl Clone for ResourceResolution
impl Clone for ResourceResolution
Source§fn clone(&self) -> ResourceResolution
fn clone(&self) -> ResourceResolution
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 moreAuto Trait Implementations§
impl Freeze for ResourceResolution
impl RefUnwindSafe for ResourceResolution
impl Send for ResourceResolution
impl Sync for ResourceResolution
impl Unpin for ResourceResolution
impl UnwindSafe for ResourceResolution
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