pub struct UserCollection {
pub id: u64,
pub label: String,
pub views: u64,
pub public: bool,
pub count: u64,
}Expand description
An user’s collection of wallpapers
User collections are just a list of wallpaper of some category (categorized by the user that created it)
“Favorite wallpapers” is just a private collection, you can find it under the name “Default”
Fields§
§id: u64The collection’s id
label: StringThe collection’s name
views: u64How many times this collection was seen
public: boolWhether this collection is private or not
count: u64How many wallpapers are contained in this collection
Trait Implementations§
Source§impl Clone for UserCollection
impl Clone for UserCollection
Source§fn clone(&self) -> UserCollection
fn clone(&self) -> UserCollection
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 UserCollection
impl Debug for UserCollection
Source§impl<'de> Deserialize<'de> for UserCollection
impl<'de> Deserialize<'de> for UserCollection
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
Auto Trait Implementations§
impl Freeze for UserCollection
impl RefUnwindSafe for UserCollection
impl Send for UserCollection
impl Sync for UserCollection
impl Unpin for UserCollection
impl UnwindSafe for UserCollection
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