Skip to main content

StandardQueryParameters

Struct StandardQueryParameters 

Source
pub struct StandardQueryParameters<'a> {
    pub fields: Option<&'a str>,
    pub pretty_print: bool,
    pub quota_user: Option<&'a str>,
    pub user_ip: Option<&'a str>,
}
Expand description

Standard Query Parameters can be used in almost any API request to GCS

Fields§

§fields: Option<&'a str>

Selector specifying a subset of fields to include in the response, the primary use of this is for better performance and lower response sizes. For more information, see the partial response documentation.

§pretty_print: bool

Returns the response in a human-readable format, with indentations and line breaks, if true. Note that while the default value is true for GCP, this crate uses a default of false

§quota_user: Option<&'a str>

Lets you enforce per-user quotas from a server-side application even in cases when the user’s IP address is unknown. This can occur, for example, with applications that run cron jobs on App Engine on a user’s behalf. You can choose any arbitrary string that uniquely identifies a user, but it is limited to 40 characters. Overrides userIp if both are provided. See more about Capping API usage

§user_ip: Option<&'a str>

Lets you enforce per-user quotas when calling the API from a server-side application. See more about Capping API usage

Trait Implementations§

Source§

impl<'a> Default for StandardQueryParameters<'a>

Source§

fn default() -> StandardQueryParameters<'a>

Returns the “default value” for a type. Read more
Source§

impl<'a> Serialize for StandardQueryParameters<'a>

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.