pub struct AugmentElectricalComponentBoundsRequest {
pub electrical_component_id: u64,
pub target_metric: i32,
pub bounds: Vec<Bounds>,
pub request_lifetime: Option<u64>,
}Expand description
Request parameters for the RPC AugmentElectricalComponentBounds.
Fields§
§electrical_component_id: u64The ID of the target electrical component.
target_metric: i32The target metric whose bounds have to be set.
bounds: Vec<Bounds>A list of bounds for the target metric. While incorporating these bounds, the API will ensure that overlapping pairs of bounds are merged into a single pair of bounds, and non-overlapping ones are kept separated.
request_lifetime: Option<u64>The duration, in seconds, until which the request will stay in effect. This duration has to be between 5 seconds and 15 minutes (including both limits), otherwise the request will be rejected. If not provided, it defaults to 5s.
Implementations§
Source§impl AugmentElectricalComponentBoundsRequest
impl AugmentElectricalComponentBoundsRequest
Sourcepub fn target_metric(&self) -> Metric
pub fn target_metric(&self) -> Metric
Returns the enum value of target_metric, or the default if the field is set to an invalid enum value.
Sourcepub fn set_target_metric(&mut self, value: Metric)
pub fn set_target_metric(&mut self, value: Metric)
Sets target_metric to the provided enum value.
Sourcepub fn request_lifetime(&self) -> u64
pub fn request_lifetime(&self) -> u64
Returns the value of request_lifetime, or the default value if request_lifetime is unset.
Trait Implementations§
Source§impl Clone for AugmentElectricalComponentBoundsRequest
impl Clone for AugmentElectricalComponentBoundsRequest
Source§fn clone(&self) -> AugmentElectricalComponentBoundsRequest
fn clone(&self) -> AugmentElectricalComponentBoundsRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Message for AugmentElectricalComponentBoundsRequest
impl Message for AugmentElectricalComponentBoundsRequest
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.Source§impl PartialEq for AugmentElectricalComponentBoundsRequest
impl PartialEq for AugmentElectricalComponentBoundsRequest
Source§fn eq(&self, other: &AugmentElectricalComponentBoundsRequest) -> bool
fn eq(&self, other: &AugmentElectricalComponentBoundsRequest) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AugmentElectricalComponentBoundsRequest
Auto Trait Implementations§
impl Freeze for AugmentElectricalComponentBoundsRequest
impl RefUnwindSafe for AugmentElectricalComponentBoundsRequest
impl Send for AugmentElectricalComponentBoundsRequest
impl Sync for AugmentElectricalComponentBoundsRequest
impl Unpin for AugmentElectricalComponentBoundsRequest
impl UnsafeUnpin for AugmentElectricalComponentBoundsRequest
impl UnwindSafe for AugmentElectricalComponentBoundsRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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