Struct p4_cmd::FileType[][src]

pub struct FileType {
    pub base: BaseFileType,
    pub modifiers: Option<FileTypeModifiers>,
    // some fields omitted
}

Perforce file type.

Example

let mut modifiers = p4_cmd::FileTypeModifiers::default();
modifiers.exclusive = true;
let ft = p4_cmd::FileType::new()
    .base(p4_cmd::BaseFileType::Binary)
    .modifiers(Some(modifiers));
assert_eq!(ft.to_string(), "binary+l");
assert_eq!("binary+l".parse::<p4_cmd::FileType>().unwrap(), ft);

Fields

The base Perforce file type

Methods

impl FileType
[src]

Trait Implementations

impl Debug for FileType
[src]

Formats the value using the given formatter. Read more

impl Clone for FileType
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for FileType
[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 FileType
[src]

impl Default for FileType
[src]

Returns the "default value" for a type. Read more

impl FromStr for FileType
[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 FileType
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for FileType

impl Sync for FileType