pub struct ImageRef {
pub rid: i32,
pub externally_managed: bool,
}Expand description
A reference to an image.
Fields§
§rid: i32The reference id of the stored image.
This property is exposed for the functions that the register_source macro generates and should not be used directly.
externally_managed: boolWhether the image is externally managed.
This property is exposed for the functions that the register_source macro generates and should not be used directly.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ImageRef
impl<'de> Deserialize<'de> for ImageRef
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
Auto Trait Implementations§
impl Freeze for ImageRef
impl RefUnwindSafe for ImageRef
impl Send for ImageRef
impl Sync for ImageRef
impl Unpin for ImageRef
impl UnwindSafe for ImageRef
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