pub(crate) struct ResolvedDownloadUrl {
pub url: String,
pub expected_bytes: Option<u64>,
}Expand description
What a resolver hands back for one queued row: the URL to fetch and, for a
video, the size predicted for it (see download::estimate).
Fields§
§url: String§expected_bytes: Option<u64>Trait Implementations§
Source§impl Clone for ResolvedDownloadUrl
impl Clone for ResolvedDownloadUrl
Source§fn clone(&self) -> ResolvedDownloadUrl
fn clone(&self) -> ResolvedDownloadUrl
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 ResolvedDownloadUrl
impl Debug for ResolvedDownloadUrl
Source§impl From<ResolvedVideoDownload> for ResolvedDownloadUrl
impl From<ResolvedVideoDownload> for ResolvedDownloadUrl
Source§fn from(r: ResolvedVideoDownload) -> Self
fn from(r: ResolvedVideoDownload) -> Self
Converts to this type from the input type.
Source§impl From<String> for ResolvedDownloadUrl
impl From<String> for ResolvedDownloadUrl
Source§impl PartialEq for ResolvedDownloadUrl
impl PartialEq for ResolvedDownloadUrl
Source§fn eq(&self, other: &ResolvedDownloadUrl) -> bool
fn eq(&self, other: &ResolvedDownloadUrl) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ResolvedDownloadUrl
impl StructuralPartialEq for ResolvedDownloadUrl
Auto Trait Implementations§
impl Freeze for ResolvedDownloadUrl
impl RefUnwindSafe for ResolvedDownloadUrl
impl Send for ResolvedDownloadUrl
impl Sync for ResolvedDownloadUrl
impl Unpin for ResolvedDownloadUrl
impl UnsafeUnpin for ResolvedDownloadUrl
impl UnwindSafe for ResolvedDownloadUrl
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more