pub struct ObjectClassDefn {
pub fields: Vec<InformationObjectClassField>,
pub syntax: Option<InformationObjectSyntax>,
}
Expand description
X.681 9.3 Every class is ultimately defined by an “ObjectClassDefn”.
Allows the definer to provide the field specifications, and optionally a syntax list. The definer may also specify semantics associated with the definition of the class.
Fields§
§fields: Vec<InformationObjectClassField>
Named field specifications, as defined in 9.4.
syntax: Option<InformationObjectSyntax>
An information object definition syntax (“SyntaxList”), as defined in 10.5.
Implementations§
Source§impl ObjectClassDefn
impl ObjectClassDefn
pub fn get_field<'a>( &'a self, path: &'a Vec<ObjectFieldIdentifier>, ) -> Option<&'a InformationObjectClassField>
Trait Implementations§
Source§impl Clone for ObjectClassDefn
impl Clone for ObjectClassDefn
Source§fn clone(&self) -> ObjectClassDefn
fn clone(&self) -> ObjectClassDefn
Returns a duplicate 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 ObjectClassDefn
impl Debug for ObjectClassDefn
Source§impl From<(Vec<InformationObjectClassField>, Option<Vec<SyntaxExpression>>)> for ObjectClassDefn
impl From<(Vec<InformationObjectClassField>, Option<Vec<SyntaxExpression>>)> for ObjectClassDefn
Source§fn from(
value: (Vec<InformationObjectClassField>, Option<Vec<SyntaxExpression>>),
) -> Self
fn from( value: (Vec<InformationObjectClassField>, Option<Vec<SyntaxExpression>>), ) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ObjectClassDefn
impl PartialEq for ObjectClassDefn
impl StructuralPartialEq for ObjectClassDefn
Auto Trait Implementations§
impl Freeze for ObjectClassDefn
impl RefUnwindSafe for ObjectClassDefn
impl Send for ObjectClassDefn
impl Sync for ObjectClassDefn
impl Unpin for ObjectClassDefn
impl UnwindSafe for ObjectClassDefn
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