Enum cargo_metadata::Message
source · #[non_exhaustive]
pub enum Message {
CompilerArtifact(Artifact),
CompilerMessage(CompilerMessage),
BuildScriptExecuted(BuildScript),
BuildFinished(BuildFinished),
TextLine(String),
}
Expand description
A cargo message
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
CompilerArtifact(Artifact)
The compiler generated an artifact
CompilerMessage(CompilerMessage)
The compiler wants to display a message
BuildScriptExecuted(BuildScript)
A build script successfully executed.
BuildFinished(BuildFinished)
The build has finished.
This is emitted at the end of the build as the last message. Added in Rust 1.44.
TextLine(String)
A line of text which isn’t a cargo or compiler message. Line separator is not included
Implementations§
source§impl Message
impl Message
sourcepub fn parse_stream<R: Read>(input: R) -> MessageIter<R> ⓘ
pub fn parse_stream<R: Read>(input: R) -> MessageIter<R> ⓘ
Creates an iterator of Message from a Read outputting a stream of JSON messages. For usage information, look at the top-level documentation.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Message
impl<'de> Deserialize<'de> for Message
source§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