pub struct Image {
pub uri: Url,
pub align: Option<AlignHV>,
pub alt: Option<String>,
pub height: Option<Measure>,
pub width: Option<Measure>,
pub scale: Option<u8>,
pub target: Option<Url>,
}Fields§
§uri: Url§align: Option<AlignHV>§alt: Option<String>§height: Option<Measure>§width: Option<Measure>§scale: Option<u8>§target: Option<Url>Implementations§
Trait Implementations§
Source§impl ExtraAttributes<Image> for Image
impl ExtraAttributes<Image> for Image
Source§impl ExtraAttributes<Image> for ImageInline
impl ExtraAttributes<Image> for ImageInline
fn with_extra(extra: ImageInline) -> ImageInline
fn extra(&self) -> &ImageInline
fn extra_mut(&mut self) -> &mut ImageInline
Source§impl JsonSchema for Image
impl JsonSchema for Image
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for Image
Auto Trait Implementations§
impl Freeze for Image
impl RefUnwindSafe for Image
impl Send for Image
impl Sync for Image
impl Unpin for Image
impl UnwindSafe for Image
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