pub struct PreferOptions {
pub return_representation: Option<ReturnRepresentation>,
pub resolution: Option<Resolution>,
pub count: Option<Count>,
pub plurality: Option<Plurality>,
pub missing: Option<Missing>,
}Expand description
PostgREST Prefer header options
Fields§
§return_representation: Option<ReturnRepresentation>§resolution: Option<Resolution>§count: Option<Count>§plurality: Option<Plurality>§missing: Option<Missing>Implementations§
Source§impl PreferOptions
impl PreferOptions
pub fn new() -> Self
pub fn with_return(self, ret: ReturnRepresentation) -> Self
pub fn with_resolution(self, res: Resolution) -> Self
pub fn with_count(self, count: Count) -> Self
pub fn with_plurality(self, plurality: Plurality) -> Self
pub fn with_missing(self, missing: Missing) -> Self
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Clone for PreferOptions
impl Clone for PreferOptions
Source§fn clone(&self) -> PreferOptions
fn clone(&self) -> PreferOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PreferOptions
impl Debug for PreferOptions
Source§impl Default for PreferOptions
impl Default for PreferOptions
Source§impl<'de> Deserialize<'de> for PreferOptions
impl<'de> Deserialize<'de> for PreferOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PreferOptions
impl PartialEq for PreferOptions
Source§impl Serialize for PreferOptions
impl Serialize for PreferOptions
impl Eq for PreferOptions
impl StructuralPartialEq for PreferOptions
Auto Trait Implementations§
impl Freeze for PreferOptions
impl RefUnwindSafe for PreferOptions
impl Send for PreferOptions
impl Sync for PreferOptions
impl Unpin for PreferOptions
impl UnwindSafe for PreferOptions
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