pub struct Picture {
pub src: String,
}Expand description
A picture a component shows, by where its bytes are. The address is opaque to the toolkit: a
window whose host holds a content store reads tilo-blob://<hash>, and any other address is
fetched by the store the picture loads through.
Fields§
§src: StringWhere its bytes are read from: a content address (tilo-blob://<hash>) or a URL.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Picture
impl<'de> Deserialize<'de> for Picture
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Picture
impl StructuralPartialEq for Picture
Auto Trait Implementations§
impl Forget for Picture
impl Freeze for Picture
impl Move for Picture
impl RefUnwindSafe for Picture
impl Send for Picturewhere
RawVecInner: Send,
impl Sync for Picturewhere
RawVecInner: Sync,
impl Unpin for Picture
impl UnsafeUnpin for Picture
impl UnwindSafe for Picturewhere
RawVecInner: 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