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
Add
Edit
Delete
Branch
MoveAdd
MoveDelete
Integrate
Import
Purge
Archive
Unknown(String)
Trait Implementations
impl Debug for Action
[src]
impl Debug for Action
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Action
[src]
impl Clone for Action
fn clone(&self) -> Action
[src]
fn clone(&self) -> Action
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for Action
[src]
impl PartialEq for Action
fn eq(&self, other: &Action) -> bool
[src]
fn eq(&self, other: &Action) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Action) -> bool
[src]
fn ne(&self, other: &Action) -> bool
This method tests for !=
.
impl Eq for Action
[src]
impl Eq for Action
impl FromStr for Action
[src]
impl FromStr for Action
type Err = Error
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
fn from_str(s: &str) -> Result<Self, Self::Err>
Parses a string s
to return a value of this type. Read more
impl Display for Action
[src]
impl Display for Action