pub enum MediaSort {
Asc,
Desc,
}
Expand description
Specifies the order of items in the media collection.
Supported values: asc
, desc
. Default: asc
.
§Example
use pexels_api::MediaSort;
use std::str::FromStr;
let sort = MediaSort::from_str("asc").unwrap();
assert_eq!(sort, MediaSort::Asc);
Variants§
Trait Implementations§
impl StructuralPartialEq for MediaSort
Auto Trait Implementations§
impl Freeze for MediaSort
impl RefUnwindSafe for MediaSort
impl Send for MediaSort
impl Sync for MediaSort
impl Unpin for MediaSort
impl UnwindSafe for MediaSort
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