pub struct SchemaEnum { /* private fields */ }
Implementations§
Source§impl SchemaEnum
impl SchemaEnum
pub fn new( name: String, type_uuid: Uuid, fingerprint: SchemaFingerprint, aliases: Box<[String]>, symbols: Box<[SchemaEnumSymbol]>, ) -> SchemaEnum
pub fn name(&self) -> &str
pub fn type_uuid(&self) -> Uuid
pub fn aliases(&self) -> &[String]
pub fn symbols(&self) -> &[SchemaEnumSymbol]
pub fn default_value(&self) -> &SchemaEnumSymbol
pub fn fingerprint(&self) -> SchemaFingerprint
pub fn find_symbol_from_name(&self, name: &str) -> Option<&SchemaEnumSymbol>
pub fn find_symbol_from_uuid(&self, uuid: Uuid) -> Option<&SchemaEnumSymbol>
Trait Implementations§
Source§impl Clone for SchemaEnum
impl Clone for SchemaEnum
Source§fn clone(&self) -> SchemaEnum
fn clone(&self) -> SchemaEnum
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 SchemaEnum
impl Debug for SchemaEnum
Source§impl Deref for SchemaEnum
impl Deref for SchemaEnum
Source§type Target = SchemaEnumInner
type Target = SchemaEnumInner
The resulting type after dereferencing.
Auto Trait Implementations§
impl Freeze for SchemaEnum
impl RefUnwindSafe for SchemaEnum
impl Send for SchemaEnum
impl Sync for SchemaEnum
impl Unpin for SchemaEnum
impl UnwindSafe for SchemaEnum
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