pub struct WSImageList {
pub images_list: Vec<CloudImage>,
pub website: Arc<WebSite>,
}Expand description
Associates a list of images with the website they come from
Fields§
§images_list: Vec<CloudImage>§website: Arc<WebSite>Implementations§
Source§impl WSImageList
impl WSImageList
Sourcepub async fn get_images_list(
website: Arc<WebSite>,
concurrent_downloads: usize,
db: Arc<DbImageHistory>,
) -> Self
pub async fn get_images_list( website: Arc<WebSite>, concurrent_downloads: usize, db: Arc<DbImageHistory>, ) -> Self
Retrieves for this website all downloadable images and makes an
ImageList (ie an image url and an associated checksum).
Returns a WSImageList formed with the website itself and a vector of
CloudImage
pub fn is_empty(&self) -> bool
Auto Trait Implementations§
impl Freeze for WSImageList
impl RefUnwindSafe for WSImageList
impl Send for WSImageList
impl Sync for WSImageList
impl Unpin for WSImageList
impl UnsafeUnpin for WSImageList
impl UnwindSafe for WSImageList
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