pub struct FileValue {
pub value_type: ValueType,
pub filename: String,
pub url: String,
pub width: Option<u32>,
pub height: Option<u32>,
}Expand description
File-representation value, covering all representation kinds.
value_type restricts to the five file kinds (StillImage, MovingImage,
Audio, Document, Archive). width and height are only populated for
StillImage; they are None for all other kinds.
Fields§
§value_type: ValueTypeRepresentation kind — one of the five file variants of ValueType.
filename: StringOriginal filename as stored by the server (e.g. "image.jp2").
url: StringIIIF or download URL for the file.
width: Option<u32>Image width in pixels; Some for StillImage, None otherwise.
height: Option<u32>Image height in pixels; Some for StillImage, None otherwise.
Trait Implementations§
impl StructuralPartialEq for FileValue
Auto Trait Implementations§
impl Freeze for FileValue
impl RefUnwindSafe for FileValue
impl Send for FileValue
impl Sync for FileValue
impl Unpin for FileValue
impl UnsafeUnpin for FileValue
impl UnwindSafe for FileValue
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