pub struct AssetLinkPrimaryStatusDetails {
pub reason: i32,
pub status: i32,
pub details: Option<Details>,
}
Expand description
Provides the detail of a PrimaryStatus. Each asset link has a PrimaryStatus value (e.g. NOT_ELIGIBLE, meaning not serving), and list of corroborating PrimaryStatusReasons (e.g. [ASSET_DISAPPROVED]). Each reason may have some additional details annotated with it. For instance, when the reason is ASSET_DISAPPROVED, the details field will contain additional information about the offline evaluation errors which led to the asset being disapproved.
Fields§
§reason: i32
Provides the reason of this PrimaryStatus.
status: i32
Provides the PrimaryStatus of this status detail.
details: Option<Details>
Provides the details associated with the asset link primary status.
Implementations§
Source§impl AssetLinkPrimaryStatusDetails
impl AssetLinkPrimaryStatusDetails
Sourcepub fn reason(&self) -> AssetLinkPrimaryStatusReason
pub fn reason(&self) -> AssetLinkPrimaryStatusReason
Returns the enum value of reason
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_reason(&mut self, value: AssetLinkPrimaryStatusReason)
pub fn set_reason(&mut self, value: AssetLinkPrimaryStatusReason)
Sets reason
to the provided enum value.
Sourcepub fn status(&self) -> AssetLinkPrimaryStatus
pub fn status(&self) -> AssetLinkPrimaryStatus
Returns the enum value of status
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_status(&mut self, value: AssetLinkPrimaryStatus)
pub fn set_status(&mut self, value: AssetLinkPrimaryStatus)
Sets status
to the provided enum value.
Trait Implementations§
Source§impl Clone for AssetLinkPrimaryStatusDetails
impl Clone for AssetLinkPrimaryStatusDetails
Source§fn clone(&self) -> AssetLinkPrimaryStatusDetails
fn clone(&self) -> AssetLinkPrimaryStatusDetails
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Message for AssetLinkPrimaryStatusDetails
impl Message for AssetLinkPrimaryStatusDetails
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.Source§impl PartialEq for AssetLinkPrimaryStatusDetails
impl PartialEq for AssetLinkPrimaryStatusDetails
Source§fn eq(&self, other: &AssetLinkPrimaryStatusDetails) -> bool
fn eq(&self, other: &AssetLinkPrimaryStatusDetails) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for AssetLinkPrimaryStatusDetails
Auto Trait Implementations§
impl Freeze for AssetLinkPrimaryStatusDetails
impl RefUnwindSafe for AssetLinkPrimaryStatusDetails
impl Send for AssetLinkPrimaryStatusDetails
impl Sync for AssetLinkPrimaryStatusDetails
impl Unpin for AssetLinkPrimaryStatusDetails
impl UnwindSafe for AssetLinkPrimaryStatusDetails
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> 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