pub enum Orientation {
Landscape,
Portrait,
Square,
}
Expand description
Desired photo orientation.
Supported values: landscape
, portrait
, square
.
Default: landscape
.
§Example
use pexels_api::Orientation;
use std::str::FromStr;
let orientation = Orientation::from_str("landscape").unwrap();
assert_eq!(orientation, Orientation::Landscape);
Variants§
Trait Implementations§
Source§impl Debug for Orientation
impl Debug for Orientation
Source§impl FromStr for Orientation
impl FromStr for Orientation
Source§impl PartialEq for Orientation
impl PartialEq for Orientation
impl StructuralPartialEq for Orientation
Auto Trait Implementations§
impl Freeze for Orientation
impl RefUnwindSafe for Orientation
impl Send for Orientation
impl Sync for Orientation
impl Unpin for Orientation
impl UnwindSafe for Orientation
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