Enum twitter_stream_message::entities::Resize
[−]
[src]
pub enum Resize<'a> {
Fit,
Crop,
Custom(Cow<'a, str>),
}Represents the resize field in Size.
Variants
FitThe media was resized to fit one dimension, keeping its native aspect ratio.
CropThe media was cropped in order to fit a specific resolution.
Custom(Cow<'a, str>)Trait Implementations
impl<'a> Clone for Resize<'a>[src]
fn clone(&self) -> Resize<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl<'a> Debug for Resize<'a>[src]
impl<'de: 'a, 'a> Deserialize<'de> for Resize<'a>[src]
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl<'a> AsRef<str> for Resize<'a>[src]
impl<'a> PartialEq for Resize<'a>[src]
fn eq(&self, other: &Resize) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0
This method tests for !=.
impl<'a> Hash for Resize<'a>[src]
fn hash<H: Hasher>(&self, state: &mut H)
Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher]. Read more