pub enum IdsVersion {
Draft0_9,
Draft0_9_6,
Draft0_9_7,
Ids1_0,
}Expand description
A published IDS schema version.
Ordered oldest to newest; Ids1_0 is the only approved standard.
Variants§
Draft0_9
0.9 and earlier pre-release drafts.
Draft0_9_6
0.9.6.
Draft0_9_7
0.9.7.
Ids1_0
1.0 — the approved buildingSMART standard.
Implementations§
Source§impl IdsVersion
impl IdsVersion
Sourcepub const CURRENT: IdsVersion = IdsVersion::Ids1_0
pub const CURRENT: IdsVersion = IdsVersion::Ids1_0
The version new documents should be written as.
Writing anything older is a deliberate compatibility choice, never a default.
Sourcepub fn is_approved(self) -> bool
pub fn is_approved(self) -> bool
Whether this version is an approved standard rather than a draft.
Trait Implementations§
Source§impl Clone for IdsVersion
impl Clone for IdsVersion
Source§fn clone(&self) -> IdsVersion
fn clone(&self) -> IdsVersion
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 moreimpl Copy for IdsVersion
Source§impl Debug for IdsVersion
impl Debug for IdsVersion
impl Eq for IdsVersion
Source§impl Hash for IdsVersion
impl Hash for IdsVersion
Source§impl Ord for IdsVersion
impl Ord for IdsVersion
Source§fn cmp(&self, other: &IdsVersion) -> Ordering
fn cmp(&self, other: &IdsVersion) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for IdsVersion
impl PartialEq for IdsVersion
Source§impl PartialOrd for IdsVersion
impl PartialOrd for IdsVersion
impl StructuralPartialEq for IdsVersion
Auto Trait Implementations§
impl Freeze for IdsVersion
impl RefUnwindSafe for IdsVersion
impl Send for IdsVersion
impl Sync for IdsVersion
impl Unpin for IdsVersion
impl UnsafeUnpin for IdsVersion
impl UnwindSafe for IdsVersion
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