supabase_rs 0.7.0

Lightweight Rust client for Supabase REST and GraphQL
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::query::{Sort, SortOrder};

use std::fmt::{Display, Formatter, Result};

impl Display for Sort {
    fn fmt(&self, f: &mut Formatter<'_>) -> Result {
        write!(
            f,
            "{}.{}",
            self.column,
            match self.order {
                SortOrder::Ascending => "asc",
                SortOrder::Descending => "desc",
            }
        )
    }
}