pub struct SectionStatus {
pub section: String,
pub coverage: i32,
pub computed_for: Option<RevisionRef>,
pub operation: Option<RecordRef>,
pub page: Option<PageInfo>,
pub reason: i32,
}Fields§
§section: StringContract-defined section name, not a client-supplied query expression.
coverage: i32§computed_for: Option<RevisionRef>§operation: Option<RecordRef>§page: Option<PageInfo>§reason: i32Supplement for COVERAGE_PARTIAL or COVERAGE_UNAVAILABLE; otherwise leave UNSPECIFIED. Coverage remains authoritative. Set the most specific safe reason, preferring ACCESS_WITHHELD if another code would expose hidden state. Replace it with coverage at each status update; never retain a stale reason.
Implementations§
Source§impl SectionStatus
impl SectionStatus
Sourcepub fn coverage(&self) -> Coverage
pub fn coverage(&self) -> Coverage
Returns the enum value of coverage, or the default if the field is set to an invalid enum value.
Sourcepub fn set_coverage(&mut self, value: Coverage)
pub fn set_coverage(&mut self, value: Coverage)
Sets coverage to the provided enum value.
Sourcepub fn reason(&self) -> SectionStatusReason
pub fn reason(&self) -> SectionStatusReason
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: SectionStatusReason)
pub fn set_reason(&mut self, value: SectionStatusReason)
Sets reason to the provided enum value.
Trait Implementations§
Source§impl Clone for SectionStatus
impl Clone for SectionStatus
Source§impl Debug for SectionStatus
impl Debug for SectionStatus
Source§impl Default for SectionStatus
impl Default for SectionStatus
impl Eq for SectionStatus
Source§impl Hash for SectionStatus
impl Hash for SectionStatus
Source§impl Message for SectionStatus
impl Message for SectionStatus
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
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,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
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,
Encodes the message with a length-delimiter to a buffer. Read more
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,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
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,
Decodes a length-delimited instance of the message from the buffer.
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,
Decodes an instance of the message from a buffer, and merges it into
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,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for SectionStatus
impl PartialEq for SectionStatus
impl StructuralPartialEq for SectionStatus
Auto Trait Implementations§
impl Freeze for SectionStatus
impl RefUnwindSafe for SectionStatus
impl Send for SectionStatus
impl Sync for SectionStatus
impl Unpin for SectionStatus
impl UnsafeUnpin for SectionStatus
impl UnwindSafe for SectionStatus
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