#[repr(u32)]pub enum DocumentFlags {
ReuseExisting = 1,
Persistent = 2,
AsNeededByApp = 4,
ExportDirectory = 8,
}
Expand description
Document flags
Variants§
ReuseExisting = 1
Reuse the existing document store entry for the file.
Persistent = 2
Persistent file.
AsNeededByApp = 4
Depends on the application needs.
ExportDirectory = 8
Export a directory.
Trait Implementations§
Source§impl BitAnd for DocumentFlags
impl BitAnd for DocumentFlags
Source§impl BitFlag for DocumentFlags
impl BitFlag for DocumentFlags
Source§fn empty() -> BitFlags<Self>
fn empty() -> BitFlags<Self>
Create a
BitFlags
with no flags set (in other words, with a value of 0). Read moreSource§fn from_bits(bits: Self::Numeric) -> Result<BitFlags<Self>, FromBitsError<Self>>
fn from_bits(bits: Self::Numeric) -> Result<BitFlags<Self>, FromBitsError<Self>>
Create a
BitFlags
if the raw value provided does not contain
any illegal flags. Read moreSource§fn from_bits_truncate(bits: Self::Numeric) -> BitFlags<Self>
fn from_bits_truncate(bits: Self::Numeric) -> BitFlags<Self>
Create a
BitFlags
from an underlying bitwise value. If any
invalid bits are set, ignore them. Read moreSource§unsafe fn from_bits_unchecked(bits: Self::Numeric) -> BitFlags<Self>
unsafe fn from_bits_unchecked(bits: Self::Numeric) -> BitFlags<Self>
Create a
BitFlags
unsafely, without checking if the bits form
a valid bit pattern for the type. Read moreSource§impl BitOr for DocumentFlags
impl BitOr for DocumentFlags
Source§impl BitXor for DocumentFlags
impl BitXor for DocumentFlags
Source§impl Clone for DocumentFlags
impl Clone for DocumentFlags
Source§fn clone(&self) -> DocumentFlags
fn clone(&self) -> DocumentFlags
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DocumentFlags
impl Debug for DocumentFlags
Source§impl<'de> Deserialize<'de> for DocumentFlags
impl<'de> Deserialize<'de> for DocumentFlags
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Not for DocumentFlags
impl Not for DocumentFlags
Source§impl PartialEq for DocumentFlags
impl PartialEq for DocumentFlags
Source§impl RawBitFlags for DocumentFlags
impl RawBitFlags for DocumentFlags
Source§const EMPTY: Self::Numeric = {transmute(0x00000000): <documents::DocumentFlags as enumflags2::_internal::RawBitFlags>::Numeric}
const EMPTY: Self::Numeric = {transmute(0x00000000): <documents::DocumentFlags as enumflags2::_internal::RawBitFlags>::Numeric}
A value with no bits set.
Source§const DEFAULT: Self::Numeric = {transmute(0x00000000): <documents::DocumentFlags as enumflags2::_internal::RawBitFlags>::Numeric}
const DEFAULT: Self::Numeric = {transmute(0x00000000): <documents::DocumentFlags as enumflags2::_internal::RawBitFlags>::Numeric}
The value used by the Default implementation. Equivalent to EMPTY, unless
customized.
Source§const ALL_BITS: Self::Numeric = {transmute(0x0000000f): <documents::DocumentFlags as enumflags2::_internal::RawBitFlags>::Numeric}
const ALL_BITS: Self::Numeric = {transmute(0x0000000f): <documents::DocumentFlags as enumflags2::_internal::RawBitFlags>::Numeric}
A value with all flag bits set.
Source§const BITFLAGS_TYPE_NAME: &'static str = "BitFlags<DocumentFlags>"
const BITFLAGS_TYPE_NAME: &'static str = "BitFlags<DocumentFlags>"
The name of the type for debug formatting purposes. Read more
Source§impl Serialize for DocumentFlags
impl Serialize for DocumentFlags
Source§impl Type for DocumentFlags
impl Type for DocumentFlags
impl Copy for DocumentFlags
impl Eq for DocumentFlags
impl StructuralPartialEq for DocumentFlags
Auto Trait Implementations§
impl Freeze for DocumentFlags
impl RefUnwindSafe for DocumentFlags
impl Send for DocumentFlags
impl Sync for DocumentFlags
impl Unpin for DocumentFlags
impl UnwindSafe for DocumentFlags
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de>,
impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de>,
Source§type Deserializer = PhantomData<T>
type Deserializer = PhantomData<T>
A DeserializeSeed implementation for this type.
Source§fn deserializer_for_signature(
signature: &Signature,
) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
fn deserializer_for_signature( signature: &Signature, ) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
Get a deserializer compatible with this parsed signature.