Struct vcard::values::image_value::ImageValue
source · pub struct ImageValue { /* private fields */ }
Implementations
sourceimpl ImageValue
impl ImageValue
pub fn from_base64(
mime_type: Mime,
base64: Base64
) -> Result<ImageValue, ImageValueError>
pub fn from_uri(uri: URI) -> ImageValue
pub fn from_file<P: AsRef<Path>>(path: P) -> Result<ImageValue, ImageValueError>
pub fn from_file_with_mime<P: AsRef<Path>>(
path: P,
mime_type: Mime
) -> Result<ImageValue, ImageValueError>
Trait Implementations
sourceimpl Clone for ImageValue
impl Clone for ImageValue
sourcefn clone(&self) -> ImageValue
fn clone(&self) -> ImageValue
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ImageValue
impl Debug for ImageValue
sourceimpl Display for ImageValue
impl Display for ImageValue
sourceimpl Hash for ImageValue
impl Hash for ImageValue
sourceimpl PartialEq<ImageValue> for ImageValue
impl PartialEq<ImageValue> for ImageValue
sourcefn eq(&self, other: &ImageValue) -> bool
fn eq(&self, other: &ImageValue) -> bool
sourceimpl ValidatedWrapper for ImageValue
impl ValidatedWrapper for ImageValue
impl Eq for ImageValue
impl StructuralEq for ImageValue
impl StructuralPartialEq for ImageValue
impl Validated for ImageValue
Auto Trait Implementations
impl RefUnwindSafe for ImageValue
impl Send for ImageValue
impl Sync for ImageValue
impl Unpin for ImageValue
impl UnwindSafe for ImageValue
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more