Enum google_api_proto::google::devtools::build::v1::publish_lifecycle_event_request::ServiceLevel
source · #[repr(i32)]pub enum ServiceLevel {
Noninteractive = 0,
Interactive = 1,
}
Expand description
The service level of the build request. Backends only uses this value when the BuildEnqueued event is published to determine what level of service this build should receive.
Variants§
Noninteractive = 0
Non-interactive builds can tolerate longer event latencies. This is the default ServiceLevel if callers do not specify one.
Interactive = 1
The events of an interactive build should be delivered with low latency.
Implementations§
source§impl ServiceLevel
impl ServiceLevel
source§impl ServiceLevel
impl ServiceLevel
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for ServiceLevel
impl Clone for ServiceLevel
source§fn clone(&self) -> ServiceLevel
fn clone(&self) -> ServiceLevel
Returns a copy 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 ServiceLevel
impl Debug for ServiceLevel
source§impl Default for ServiceLevel
impl Default for ServiceLevel
source§fn default() -> ServiceLevel
fn default() -> ServiceLevel
Returns the “default value” for a type. Read more
source§impl From<ServiceLevel> for i32
impl From<ServiceLevel> for i32
source§fn from(value: ServiceLevel) -> i32
fn from(value: ServiceLevel) -> i32
Converts to this type from the input type.
source§impl Hash for ServiceLevel
impl Hash for ServiceLevel
source§impl Ord for ServiceLevel
impl Ord for ServiceLevel
source§fn cmp(&self, other: &ServiceLevel) -> Ordering
fn cmp(&self, other: &ServiceLevel) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ServiceLevel
impl PartialEq for ServiceLevel
source§fn eq(&self, other: &ServiceLevel) -> bool
fn eq(&self, other: &ServiceLevel) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ServiceLevel
impl PartialOrd for ServiceLevel
source§fn partial_cmp(&self, other: &ServiceLevel) -> Option<Ordering>
fn partial_cmp(&self, other: &ServiceLevel) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for ServiceLevel
impl TryFrom<i32> for ServiceLevel
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
source§fn try_from(value: i32) -> Result<ServiceLevel, UnknownEnumValue>
fn try_from(value: i32) -> Result<ServiceLevel, UnknownEnumValue>
Performs the conversion.
impl Copy for ServiceLevel
impl Eq for ServiceLevel
impl StructuralPartialEq for ServiceLevel
Auto Trait Implementations§
impl Freeze for ServiceLevel
impl RefUnwindSafe for ServiceLevel
impl Send for ServiceLevel
impl Sync for ServiceLevel
impl Unpin for ServiceLevel
impl UnwindSafe for ServiceLevel
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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