Enum ruma_client_api::r0::media::get_content_thumbnail::Method
source · pub enum Method {
Crop,
Scale,
}Expand description
The desired resizing method.
Variants§
Crop
Crop the original to produce the requested image dimensions.
Scale
Maintain the original aspect ratio of the source image.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Method
impl<'de> Deserialize<'de> for Method
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