pub struct Webpage<'a> {
pub ip: IpAddr,
pub url: Url,
pub contents: Cow<'a, [u8]>,
}Fields§
§ip: IpAddr§url: Url§contents: Cow<'a, [u8]>Implementations§
Trait Implementations§
Source§impl<'a> AmadeusOrd for Webpage<'a>
impl<'a> AmadeusOrd for Webpage<'a>
fn amadeus_cmp(&self, other: &Self) -> Ordering
Source§impl<'de, 'a> Deserialize<'de> for Webpage<'a>
impl<'de, 'a> Deserialize<'de> for Webpage<'a>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl DowncastFrom<Value> for Webpage<'static>
impl DowncastFrom<Value> for Webpage<'static>
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl<'a> Ord for Webpage<'a>
impl<'a> Ord for Webpage<'a>
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<'a> PartialOrd for Webpage<'a>
impl<'a> PartialOrd for Webpage<'a>
impl<'a> Eq for Webpage<'a>
impl<'a> StructuralPartialEq for Webpage<'a>
Auto Trait Implementations§
impl<'a> Freeze for Webpage<'a>
impl<'a> RefUnwindSafe for Webpage<'a>
impl<'a> Send for Webpage<'a>
impl<'a> Sync for Webpage<'a>
impl<'a> Unpin for Webpage<'a>
impl<'a> UnwindSafe for Webpage<'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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<A, B> Downcast<A> for Bwhere
A: DowncastFrom<B>,
impl<A, B> Downcast<A> for Bwhere
A: DowncastFrom<B>,
fn downcast(self) -> Result<A, DowncastError>
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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