pub struct BandSpec {Show 16 fields
pub ceiling: Option<String>,
pub cooldown_seconds: Option<i64>,
pub disruption_policy: Option<String>,
pub dry_run: Option<bool>,
pub floor: Option<String>,
pub force_limit: Option<String>,
pub force_limit_expiry: Option<String>,
pub grow_above: Option<f64>,
pub grow_factor: Option<f64>,
pub max_staleness_seconds: Option<i64>,
pub setpoint: Option<f64>,
pub shrink_below: Option<f64>,
pub shrink_factor: Option<f64>,
pub suspend: Option<bool>,
pub target_ref: Option<TargetRef>,
pub write_intent: Option<WriteIntent>,
}Fields§
§ceiling: Option<String>§cooldown_seconds: Option<i64>§disruption_policy: Option<String>§dry_run: Option<bool>§floor: Option<String>§force_limit: Option<String>§force_limit_expiry: Option<String>§grow_above: Option<f64>§grow_factor: Option<f64>§max_staleness_seconds: Option<i64>§setpoint: Option<f64>§shrink_below: Option<f64>§shrink_factor: Option<f64>§suspend: Option<bool>§target_ref: Option<TargetRef>§write_intent: Option<WriteIntent>THE authorization gate, on every band kind. Added 2026-07-26: gRPC could previously set only dry_run, which is inert on eight of the ten kinds, so this surface had no way to hold or release a band at all.
Implementations§
Source§impl BandSpec
impl BandSpec
Sourcepub fn ceiling(&self) -> &str
pub fn ceiling(&self) -> &str
Returns the value of ceiling, or the default value if ceiling is unset.
Sourcepub fn cooldown_seconds(&self) -> i64
pub fn cooldown_seconds(&self) -> i64
Returns the value of cooldown_seconds, or the default value if cooldown_seconds is unset.
Sourcepub fn disruption_policy(&self) -> &str
pub fn disruption_policy(&self) -> &str
Returns the value of disruption_policy, or the default value if disruption_policy is unset.
Sourcepub fn dry_run(&self) -> bool
pub fn dry_run(&self) -> bool
Returns the value of dry_run, or the default value if dry_run is unset.
Sourcepub fn floor(&self) -> &str
pub fn floor(&self) -> &str
Returns the value of floor, or the default value if floor is unset.
Sourcepub fn force_limit(&self) -> &str
pub fn force_limit(&self) -> &str
Returns the value of force_limit, or the default value if force_limit is unset.
Sourcepub fn force_limit_expiry(&self) -> &str
pub fn force_limit_expiry(&self) -> &str
Returns the value of force_limit_expiry, or the default value if force_limit_expiry is unset.
Sourcepub fn grow_above(&self) -> f64
pub fn grow_above(&self) -> f64
Returns the value of grow_above, or the default value if grow_above is unset.
Sourcepub fn grow_factor(&self) -> f64
pub fn grow_factor(&self) -> f64
Returns the value of grow_factor, or the default value if grow_factor is unset.
Sourcepub fn max_staleness_seconds(&self) -> i64
pub fn max_staleness_seconds(&self) -> i64
Returns the value of max_staleness_seconds, or the default value if max_staleness_seconds is unset.
Sourcepub fn setpoint(&self) -> f64
pub fn setpoint(&self) -> f64
Returns the value of setpoint, or the default value if setpoint is unset.
Sourcepub fn shrink_below(&self) -> f64
pub fn shrink_below(&self) -> f64
Returns the value of shrink_below, or the default value if shrink_below is unset.
Sourcepub fn shrink_factor(&self) -> f64
pub fn shrink_factor(&self) -> f64
Returns the value of shrink_factor, or the default value if shrink_factor is unset.
Trait Implementations§
§impl<'de> Deserialize<'de> for BandSpec
impl<'de> Deserialize<'de> for BandSpec
§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>,
Source§impl Message for BandSpec
impl Message for BandSpec
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.impl StructuralPartialEq for BandSpec
Auto Trait Implementations§
impl Freeze for BandSpec
impl RefUnwindSafe for BandSpec
impl Send for BandSpec
impl Sync for BandSpec
impl Unpin for BandSpec
impl UnsafeUnpin for BandSpec
impl UnwindSafe for BandSpec
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
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> 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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§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>
T in a tonic::Request