pub struct VnImage {
pub id: Option<String>,
pub url: Option<String>,
pub dims: Option<Vec<u32>>,
pub sexual: Option<f32>,
pub violence: Option<f32>,
pub votecount: Option<u32>,
pub thumbnail: Option<String>,
pub thumbnail_dims: Option<Vec<u32>>,
}Fields§
§id: Option<String>§url: Option<String>§dims: Option<Vec<u32>>Pixel dimensions of the image [width, height]
sexual: Option<f32>Average image flagging vote for sexual content between 0 and 2 (inclusive)
violence: Option<f32>Average image flagging vote for violence between 0 and 2 (inclusive)
votecount: Option<u32>Number of image flagging votes
thumbnail: Option<String>URL to the thumbnail
thumbnail_dims: Option<Vec<u32>>Pixel dimensions of the thumbnail [width, height]
Trait Implementations§
source§impl<'de> Deserialize<'de> for VnImage
impl<'de> Deserialize<'de> for VnImage
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 VnImage
impl RefUnwindSafe for VnImage
impl Send for VnImage
impl Sync for VnImage
impl Unpin for VnImage
impl UnwindSafe for VnImage
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