Struct p4_cmd::FileTypeModifiers [−][src]
pub struct FileTypeModifiers { pub always_writeable: bool, pub executable: bool, pub rcs_expansion: bool, pub exclusive: bool, pub full: bool, pub deltas: bool, pub full_uncompressed: bool, pub head: bool, pub revisions: Option<usize>, pub modtime: bool, pub archive: bool, // some fields omitted }
Perforce file type modifiers.
Example
let mut modifiers = p4_cmd::FileTypeModifiers::new(); modifiers.exclusive = true; assert_eq!(modifiers.to_string(), "l"); assert_eq!("l".parse::<p4_cmd::FileTypeModifiers>().unwrap(), modifiers);
Fields
always_writeable: bool
File is always writable on client
executable: bool
Execute bit set on client
rcs_expansion: bool
RCS keyword expansion
exclusive: bool
Exclusive open (locking)
full: bool
Perforce stores the full compressed version of each file revision
deltas: bool
Perforce stores deltas in RCS format
full_uncompressed: bool
Perforce stores full file per revision, uncompressed
head: bool
Only the head revision is stored
revisions: Option<usize>
Only the most recent n revisions are stored
modtime: bool
Preserve original modtime
archive: bool
Archive trigger required
Methods
impl FileTypeModifiers
[src]
impl FileTypeModifiers
Trait Implementations
impl Debug for FileTypeModifiers
[src]
impl Debug for FileTypeModifiers
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 FileTypeModifiers
[src]
impl Clone for FileTypeModifiers
fn clone(&self) -> FileTypeModifiers
[src]
fn clone(&self) -> FileTypeModifiers
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)
Performs copy-assignment from source
. Read more
impl PartialEq for FileTypeModifiers
[src]
impl PartialEq for FileTypeModifiers
fn eq(&self, other: &FileTypeModifiers) -> bool
[src]
fn eq(&self, other: &FileTypeModifiers) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &FileTypeModifiers) -> bool
[src]
fn ne(&self, other: &FileTypeModifiers) -> bool
This method tests for !=
.
impl Eq for FileTypeModifiers
[src]
impl Eq for FileTypeModifiers
impl Default for FileTypeModifiers
[src]
impl Default for FileTypeModifiers
fn default() -> FileTypeModifiers
[src]
fn default() -> FileTypeModifiers
Returns the "default value" for a type. Read more
impl FromStr for FileTypeModifiers
[src]
impl FromStr for FileTypeModifiers
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 FileTypeModifiers
[src]
impl Display for FileTypeModifiers
Auto Trait Implementations
impl Send for FileTypeModifiers
impl Send for FileTypeModifiers
impl Sync for FileTypeModifiers
impl Sync for FileTypeModifiers