#[non_exhaustive]pub struct GetProtestOptions {
pub shape: Option<String>,
pub flat: bool,
pub flat_lists: bool,
}Expand description
Options for Client::get_protest. The detail endpoint returns a typed
ProtestRecord; shape lets callers override the server’s default.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.shape: Option<String>Shape selector. When empty, the server returns its default detail shape.
flat: boolFlatten nested objects into dot-separated keys.
flat_lists: boolWhen flat=true, also flatten list-valued nested fields.
Implementations§
Source§impl GetProtestOptions
impl GetProtestOptions
Sourcepub fn builder() -> GetProtestOptionsBuilder
pub fn builder() -> GetProtestOptionsBuilder
Create an instance of GetProtestOptions using the builder syntax
Trait Implementations§
Source§impl Clone for GetProtestOptions
impl Clone for GetProtestOptions
Source§fn clone(&self) -> GetProtestOptions
fn clone(&self) -> GetProtestOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GetProtestOptions
impl Debug for GetProtestOptions
Source§impl Default for GetProtestOptions
impl Default for GetProtestOptions
Source§fn default() -> GetProtestOptions
fn default() -> GetProtestOptions
Returns the “default value” for a type. Read more
Source§impl PartialEq for GetProtestOptions
impl PartialEq for GetProtestOptions
Source§fn eq(&self, other: &GetProtestOptions) -> bool
fn eq(&self, other: &GetProtestOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for GetProtestOptions
impl StructuralPartialEq for GetProtestOptions
Auto Trait Implementations§
impl Freeze for GetProtestOptions
impl RefUnwindSafe for GetProtestOptions
impl Send for GetProtestOptions
impl Sync for GetProtestOptions
impl Unpin for GetProtestOptions
impl UnsafeUnpin for GetProtestOptions
impl UnwindSafe for GetProtestOptions
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