Enum p4_cmd::Action[][src]

pub enum Action {
    Add,
    Edit,
    Delete,
    Branch,
    MoveAdd,
    MoveDelete,
    Integrate,
    Import,
    Purge,
    Archive,
    Unknown(String),
    // some variants omitted
}

Action performed on a file at a given revision.

Example

assert_eq!(p4_cmd::Action::MoveDelete.to_string(), "move/delete");
assert_eq!("move/delete".parse::<p4_cmd::Action>().unwrap(), p4_cmd::Action::MoveDelete);

Variants

Trait Implementations

impl Debug for Action
[src]

Formats the value using the given formatter. Read more

impl Clone for Action
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Action
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Action
[src]

impl FromStr for Action
[src]

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

impl Display for Action
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Action

impl Sync for Action