#[non_exhaustive]pub struct AllowedProcessingUnits {
pub min_processing_units: i32,
pub max_processing_units: i32,
pub processing_unit_increment: i32,
/* private fields */
}Expand description
Defines a range of processing units supported by an instance configuration.
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.min_processing_units: i32The minimum value of processing units applicable to this interval, inclusive.
max_processing_units: i32The maximum value of processing units applicable to this interval, inclusive. If unset, there is no predefined limit to the supported number of processing units, although project quota limits still apply.
processing_unit_increment: i32Allowed increments of processing units between “min” and “max”.
Implementations§
Source§impl AllowedProcessingUnits
impl AllowedProcessingUnits
Sourcepub fn set_min_processing_units<T: Into<i32>>(self, v: T) -> Self
pub fn set_min_processing_units<T: Into<i32>>(self, v: T) -> Self
Sets the value of min_processing_units.
§Example
ⓘ
let x = AllowedProcessingUnits::new().set_min_processing_units(42);Sourcepub fn set_max_processing_units<T: Into<i32>>(self, v: T) -> Self
pub fn set_max_processing_units<T: Into<i32>>(self, v: T) -> Self
Sets the value of max_processing_units.
§Example
ⓘ
let x = AllowedProcessingUnits::new().set_max_processing_units(42);Sourcepub fn set_processing_unit_increment<T: Into<i32>>(self, v: T) -> Self
pub fn set_processing_unit_increment<T: Into<i32>>(self, v: T) -> Self
Sets the value of processing_unit_increment.
§Example
ⓘ
let x = AllowedProcessingUnits::new().set_processing_unit_increment(42);Trait Implementations§
Source§impl Clone for AllowedProcessingUnits
impl Clone for AllowedProcessingUnits
Source§impl Debug for AllowedProcessingUnits
impl Debug for AllowedProcessingUnits
Source§impl Default for AllowedProcessingUnits
impl Default for AllowedProcessingUnits
Source§impl Message for AllowedProcessingUnits
impl Message for AllowedProcessingUnits
Source§impl PartialEq for AllowedProcessingUnits
impl PartialEq for AllowedProcessingUnits
impl StructuralPartialEq for AllowedProcessingUnits
Auto Trait Implementations§
impl Forget for AllowedProcessingUnits
impl Freeze for AllowedProcessingUnits
impl Move for AllowedProcessingUnits
impl RefUnwindSafe for AllowedProcessingUnits
impl Send for AllowedProcessingUnits
impl Sync for AllowedProcessingUnits
impl Unpin for AllowedProcessingUnits
impl UnsafeUnpin for AllowedProcessingUnits
impl UnwindSafe for AllowedProcessingUnits
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request