[][src]Enum xio_jobset_compilation::CodeLocation

pub enum CodeLocation {
    Command {
        job: String,
        command_index: u16,
        command_description: String,
        command_message: String,
    },
    Condition {
        job: String,
        command_index: u16,
        command_description: String,
        command_message: String,
        condition_index: u16,
        condition_description: String,
        condition_message: String,
    },
}

A location inside the XIO job code.

Variants

Command

A command in the job.

Fields of Command

job: String

The job name.

command_index: u16

The index of the command.

command_description: String

The description of the command.

command_message: String

The message attached to the command.

Condition

A condition of a command in the job.

Fields of Condition

job: String

The job name.

command_index: u16

The index of the command.

command_description: String

The description of the command.

command_message: String

The message attached to the command.

condition_index: u16

The index of the condition.

condition_description: String

The description of the condition.

condition_message: String

The message attached to the condition.

Methods

impl CodeLocation[src]

pub fn with_condition(
    self,
    condition_index: u16,
    condition_description: String,
    condition_message: String
) -> Self
[src]

Derive the location of a condition from either a command or another condition of the same command.

Trait Implementations

impl Eq for CodeLocation[src]

impl Clone for CodeLocation[src]

impl PartialEq<CodeLocation> for CodeLocation[src]

impl Debug for CodeLocation[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

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