#[repr(C)]pub struct ExternalResource {
pub url: AzString,
pub kind: ExternalResourceKind,
pub mime_type: OptionMimeTypeHint,
pub source_element: AzString,
pub source_attribute: AzString,
}Expand description
An external resource URL found in an XML/HTML document
Fields§
§url: AzStringThe URL as found in the document (may be relative or absolute)
kind: ExternalResourceKindClassification of the resource type
mime_type: OptionMimeTypeHintMIME type hint (from type attribute, file extension, or heuristics)
source_element: AzStringThe HTML element that referenced this resource (e.g., “img”, “link”, “script”)
source_attribute: AzStringThe attribute that contained the URL (e.g., “src”, “href”)
Trait Implementations§
Source§impl Clone for ExternalResource
impl Clone for ExternalResource
Source§fn clone(&self) -> ExternalResource
fn clone(&self) -> ExternalResource
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 ExternalResource
impl Debug for ExternalResource
Source§impl Extend<ExternalResource> for ExternalResourceVec
impl Extend<ExternalResource> for ExternalResourceVec
Source§fn extend<T: IntoIterator<Item = ExternalResource>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = ExternalResource>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl FromIterator<ExternalResource> for ExternalResourceVec
impl FromIterator<ExternalResource> for ExternalResourceVec
Source§fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = ExternalResource>,
fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = ExternalResource>,
Creates a value from an iterator. Read more
Source§impl Hash for ExternalResource
impl Hash for ExternalResource
Source§impl Ord for ExternalResource
impl Ord for ExternalResource
Source§fn cmp(&self, other: &ExternalResource) -> Ordering
fn cmp(&self, other: &ExternalResource) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ExternalResource
impl PartialEq for ExternalResource
Source§impl PartialOrd for ExternalResource
impl PartialOrd for ExternalResource
impl Eq for ExternalResource
impl StructuralPartialEq for ExternalResource
Auto Trait Implementations§
impl Freeze for ExternalResource
impl RefUnwindSafe for ExternalResource
impl Send for ExternalResource
impl Sync for ExternalResource
impl Unpin for ExternalResource
impl UnsafeUnpin for ExternalResource
impl UnwindSafe for ExternalResource
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more