pub struct FileType {
pub base: BaseFileType,
pub modifiers: Option<FileTypeModifiers>,
/* private fields */
}
Expand description
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§
§base: BaseFileType
The base Perforce file type
modifiers: Option<FileTypeModifiers>
Implementations§
Trait Implementations§
impl Eq for FileType
impl StructuralPartialEq for FileType
Auto Trait Implementations§
impl Freeze for FileType
impl RefUnwindSafe for FileType
impl Send for FileType
impl Sync for FileType
impl Unpin for FileType
impl UnwindSafe for FileType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more