pub struct CardImage {
pub url: String,
pub aspect_ratio: Option<f64>,
}Expand description
图片样式
Fields§
§url: String§aspect_ratio: Option<f64>Trait Implementations§
Source§impl<'de> Deserialize<'de> for CardImage
impl<'de> Deserialize<'de> for CardImage
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 CardImage
impl RefUnwindSafe for CardImage
impl Send for CardImage
impl Sync for CardImage
impl Unpin for CardImage
impl UnwindSafe for CardImage
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