#[non_exhaustive]pub struct PurgeOptions {
pub classes: Vec<String>,
pub include_roots: bool,
pub include_owner_history: bool,
pub dry_run: bool,
}Expand description
What IfcModel::purge removes.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.classes: Vec<String>Entity types to purge, subtypes included; empty for every resource
entity no IfcRoot reaches.
include_roots: boolAlso purge unreferenced IfcRoots of classes.
include_owner_history: boolAlso purge an unreferenced owner history with its actors (and, without classes, unused representation contexts).
dry_run: boolReport what would be purged without changing the model.
Implementations§
Source§impl PurgeOptions
impl PurgeOptions
Trait Implementations§
Source§impl Clone for PurgeOptions
impl Clone for PurgeOptions
Source§fn clone(&self) -> PurgeOptions
fn clone(&self) -> PurgeOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PurgeOptions
impl Debug for PurgeOptions
Source§impl Default for PurgeOptions
impl Default for PurgeOptions
Source§fn default() -> PurgeOptions
fn default() -> PurgeOptions
Returns the “default value” for a type. Read more
impl Eq for PurgeOptions
Source§impl PartialEq for PurgeOptions
impl PartialEq for PurgeOptions
impl StructuralPartialEq for PurgeOptions
Auto Trait Implementations§
impl Freeze for PurgeOptions
impl RefUnwindSafe for PurgeOptions
impl Send for PurgeOptions
impl Sync for PurgeOptions
impl Unpin for PurgeOptions
impl UnsafeUnpin for PurgeOptions
impl UnwindSafe for PurgeOptions
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.