binaryninja::workflow::activity

Struct Config

source
pub struct Config {
    pub name: String,
    pub title: String,
    pub description: String,
    pub role: Role,
    pub aliases: Vec<String>,
    pub eligibility: Eligibility,
    pub dependencies: Option<Dependencies>,
}
Expand description

The configuration for an Activity, defining its metadata, eligibility criteria, and execution semantics.

Fields§

§name: String

A unique identifier for the activity.

§title: String

A human-readable title for the activity.

§description: String

A brief description of the activity’s purpose and functionality.

§role: Role

The role of the activity within the workflow, determining its behavior and interaction with other activities.

§aliases: Vec<String>

Names by which this activity has previously been known.

§eligibility: Eligibility

The conditions that determine when the activity should execute.

§dependencies: Option<Dependencies>

Implementations§

source§

impl Config

source

pub fn action( name: impl Into<String>, title: impl Into<String>, description: impl Into<String>, ) -> Self

Creates a new instance with role Role::Action and the specified name, title, and description.

source

pub fn aliases<I, S>(self, aliases: I) -> Self
where I: IntoIterator<Item = S>, S: Into<String>,

Sets the aliases field, which contains names by which this activity has previously been known.

source

pub fn eligibility(self, eligibility: Eligibility) -> Self

Sets the eligibility field, which defines the conditions under which this activity is eligible for execution.

source

pub fn downstream_dependencies<I, S>(self, dependencies: I) -> Self
where I: IntoIterator<Item = S>, S: Into<String>,

Sets the dependencies field to specify dependencies that should be triggered after this activity completes.

Trait Implementations§

source§

impl AsConfig for &Config

source§

impl AsConfig for Config

source§

impl Debug for Config

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Config

source§

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 Serialize for Config

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl Freeze for Config

§

impl RefUnwindSafe for Config

§

impl Send for Config

§

impl Sync for Config

§

impl Unpin for Config

§

impl UnwindSafe for Config

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,