pub struct RepresentativeImage {
pub id: String,
pub url: String,
pub width: Option<u64>,
pub height: Option<u64>,
}
Expand description
Data about a representative image for a place or thing.
Fields§
§id: String
ID of the image.
url: String
URL to the image.
width: Option<u64>
Optional pixel width of the image.
height: Option<u64>
Optional pixel height of the image.
Trait Implementations§
Source§impl Clone for RepresentativeImage
impl Clone for RepresentativeImage
Source§fn clone(&self) -> RepresentativeImage
fn clone(&self) -> RepresentativeImage
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 RepresentativeImage
impl Debug for RepresentativeImage
Source§impl From<RepresentativeImage> for RepresentativeImage
impl From<RepresentativeImage> for RepresentativeImage
Source§fn from(val: RepresentativeImage) -> Self
fn from(val: RepresentativeImage) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RepresentativeImage
impl PartialEq for RepresentativeImage
impl StructuralPartialEq for RepresentativeImage
Auto Trait Implementations§
impl Freeze for RepresentativeImage
impl RefUnwindSafe for RepresentativeImage
impl Send for RepresentativeImage
impl Sync for RepresentativeImage
impl Unpin for RepresentativeImage
impl UnwindSafe for RepresentativeImage
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