pub struct ImageReference<Dimension> {
pub dimensions: Rectangle<Dimension>,
pub url: Url,
}
Expand description
An abstract struct that encapsulates an image entry on the Uploads.im site.
Fields§
§dimensions: Rectangle<Dimension>
The dimensions of the referred image.
url: Url
The URL through which the referred image can be requested.
Trait Implementations§
Source§impl<Dimension: Clone> Clone for ImageReference<Dimension>
impl<Dimension: Clone> Clone for ImageReference<Dimension>
Source§fn clone(&self) -> ImageReference<Dimension>
fn clone(&self) -> ImageReference<Dimension>
Returns a copy 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 moreAuto Trait Implementations§
impl<Dimension> Freeze for ImageReference<Dimension>where
Dimension: Freeze,
impl<Dimension> RefUnwindSafe for ImageReference<Dimension>where
Dimension: RefUnwindSafe,
impl<Dimension> Send for ImageReference<Dimension>where
Dimension: Send,
impl<Dimension> Sync for ImageReference<Dimension>where
Dimension: Sync,
impl<Dimension> Unpin for ImageReference<Dimension>where
Dimension: Unpin,
impl<Dimension> UnwindSafe for ImageReference<Dimension>where
Dimension: UnwindSafe,
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