pub struct ReportUnitMetadata {
    pub complete: Option<bool>,
    pub module_name: Option<String>,
    pub module_id: Option<u32>,
    pub source_path: Option<String>,
    pub progress_categories: Vec<String>,
    pub auto_generated: Option<bool>,
}Expand description
Extra metadata for a unit
Fields§
§complete: Option<bool>Whether this unit is marked as complete (or “linked”)
module_name: Option<String>The name of the module this unit belongs to
module_id: Option<u32>The ID of the module this unit belongs to
source_path: Option<String>The path to the source file of this unit
progress_categories: Vec<String>Progress categories for this unit
auto_generated: Option<bool>Whether this unit is automatically generated (not user-provided)
Implementations§
source§impl ReportUnitMetadata
 
impl ReportUnitMetadata
sourcepub fn complete(&self) -> bool
 
pub fn complete(&self) -> bool
Returns the value of complete, or the default value if complete is unset.
sourcepub fn module_name(&self) -> &str
 
pub fn module_name(&self) -> &str
Returns the value of module_name, or the default value if module_name is unset.
sourcepub fn module_id(&self) -> u32
 
pub fn module_id(&self) -> u32
Returns the value of module_id, or the default value if module_id is unset.
sourcepub fn source_path(&self) -> &str
 
pub fn source_path(&self) -> &str
Returns the value of source_path, or the default value if source_path is unset.
sourcepub fn auto_generated(&self) -> bool
 
pub fn auto_generated(&self) -> bool
Returns the value of auto_generated, or the default value if auto_generated is unset.
Trait Implementations§
source§impl Clone for ReportUnitMetadata
 
impl Clone for ReportUnitMetadata
source§fn clone(&self) -> ReportUnitMetadata
 
fn clone(&self) -> ReportUnitMetadata
Returns a copy of the value. Read more
1.6.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 ReportUnitMetadata
 
impl Debug for ReportUnitMetadata
source§impl Default for ReportUnitMetadata
 
impl Default for ReportUnitMetadata
§impl<'de> Deserialize<'de> for ReportUnitMetadata
 
impl<'de> Deserialize<'de> for ReportUnitMetadata
§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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Message for ReportUnitMetadata
 
impl Message for ReportUnitMetadata
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 ReportUnitMetadata
 
impl PartialEq for ReportUnitMetadata
§impl Serialize for ReportUnitMetadata
 
impl Serialize for ReportUnitMetadata
impl StructuralPartialEq for ReportUnitMetadata
Auto Trait Implementations§
impl Freeze for ReportUnitMetadata
impl RefUnwindSafe for ReportUnitMetadata
impl Send for ReportUnitMetadata
impl Sync for ReportUnitMetadata
impl Unpin for ReportUnitMetadata
impl UnwindSafe for ReportUnitMetadata
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
source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
 
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)