Expand description
Everything a plugin needs in scope. Start with use malbox::prelude::*;.
Re-exports§
pub use crate::context::Context;pub use crate::context::ResultSink;pub use crate::context::TaskInfo;pub use crate::error::Result;pub use crate::error::SdkError;pub use crate::health::HealthStatus;pub use crate::meta::ExecutionContext;pub use crate::meta::PluginMeta;pub use crate::meta::PluginState;pub use crate::plugin::GuestPlugin;pub use crate::plugin::HostPlugin;pub use crate::plugin::LaunchResult;pub use crate::plugin::Plugin;pub use crate::report::ArtifactRef;pub use crate::report::Block;pub use crate::report::CalloutLevel;pub use crate::report::Classification;pub use crate::report::Column;pub use crate::report::Confidence;pub use crate::report::GraphEdge;pub use crate::report::GraphNode;pub use crate::report::Indicator;pub use crate::report::KvPair;pub use crate::report::PluginInfo;pub use crate::report::Report;pub use crate::report::ReportBuilder;pub use crate::report::SCHEMA_VERSION;pub use crate::report::Section;pub use crate::report::SectionBuilder;pub use crate::report::TimelineEvent;pub use crate::report::TreeNode;pub use crate::report::Ttp;pub use crate::report::Verdict;pub use crate::result::PluginResult;
Macros§
- debug
- Constructs an event at the debug level.
- error
- Constructs an event at the error level.
- info
- Constructs an event at the info level.
- warn
- Constructs an event at the warn level.
Enums§
- Event
- A flat enumeration of all system-wide events.
Constants§
- REPORT_
RESULT_ NAME - The well-known
result_namethe scheduler and API use to identify a report envelope among a task’s outputs. Defined inmalbox-plugin-transportso the SDK and scheduler share the same constant without a direct dep. Well-knownresult_namefor a plugin’s structured report envelope.
Traits§
- Deserialize
- A data structure that can be deserialized from any data format supported by Serde.
- Serialize
- A data structure that can be serialized into any data format supported by Serde.