Enum twitter_stream::entities::Resize
[−]
[src]
pub enum Resize {
Fit,
Crop,
Custom(String),
}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(String)Trait Implementations
impl Clone for Resize[src]
fn clone(&self) -> Resize
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 Debug for Resize[src]
impl Deserialize for Resize[src]
fn deserialize<D: Deserializer>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl AsRef<str> for Resize[src]
impl PartialEq for Resize[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 Hash for Resize[src]
fn hash<H: Hasher>(&self, state: &mut H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher1.3.0
Feeds a slice of this type into the state provided.