pub struct Reservation {
pub name: Option<String>,
pub throughput_capacity: Option<i64>,
}Expand description
Metadata about a reservation resource.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- projects locations reservations create admin (request|response)
- projects locations reservations get admin (response)
- projects locations reservations patch admin (request|response)
Fields§
§name: Option<String>The name of the reservation. Structured like: projects/{project_number}/locations/{location}/reservations/{reservation_id}
throughput_capacity: Option<i64>The reserved throughput capacity. Every unit of throughput capacity is equivalent to 1 MiB/s of published messages or 2 MiB/s of subscribed messages. Any topics which are declared as using capacity from a Reservation will consume resources from this reservation instead of being charged individually.
Trait Implementations§
Source§impl Clone for Reservation
impl Clone for Reservation
Source§fn clone(&self) -> Reservation
fn clone(&self) -> Reservation
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 Reservation
impl Debug for Reservation
Source§impl Default for Reservation
impl Default for Reservation
Source§fn default() -> Reservation
fn default() -> Reservation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Reservation
impl<'de> Deserialize<'de> for Reservation
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 Serialize for Reservation
impl Serialize for Reservation
impl RequestValue for Reservation
impl ResponseResult for Reservation
Auto Trait Implementations§
impl Freeze for Reservation
impl RefUnwindSafe for Reservation
impl Send for Reservation
impl Sync for Reservation
impl Unpin for Reservation
impl UnwindSafe for Reservation
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