pub enum SchemaIdent {
Id(SchemaId),
Name(String),
Location(Url),
}Expand description
Identifies a schema by either it’s id, it’s name or it’s location.
Used in IdentQuadruple.
Variants§
Id(SchemaId)
Identify the schema by it’s SchemaId.
Name(String)
Identify the schema by it’s name.
Location(Url)
Identify the schema by it’s location.
Implementations§
Source§impl SchemaIdent
impl SchemaIdent
Sourcepub fn id(value: SchemaId) -> Self
pub fn id(value: SchemaId) -> Self
Creates a new SchemaIdent::Id instance from the passed value.
Sourcepub fn name<X>(value: X) -> Self
pub fn name<X>(value: X) -> Self
Creates a new SchemaIdent::Name instance from the passed value.
Sourcepub fn location<X>(value: X) -> Self
pub fn location<X>(value: X) -> Self
Creates a new SchemaIdent::Location instance from the passed value.
Trait Implementations§
Source§impl Clone for SchemaIdent
impl Clone for SchemaIdent
Source§fn clone(&self) -> SchemaIdent
fn clone(&self) -> SchemaIdent
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 SchemaIdent
impl Debug for SchemaIdent
Source§impl From<SchemaId> for SchemaIdent
impl From<SchemaId> for SchemaIdent
Source§impl From<String> for SchemaIdent
impl From<String> for SchemaIdent
Auto Trait Implementations§
impl Freeze for SchemaIdent
impl RefUnwindSafe for SchemaIdent
impl Send for SchemaIdent
impl Sync for SchemaIdent
impl Unpin for SchemaIdent
impl UnsafeUnpin for SchemaIdent
impl UnwindSafe for SchemaIdent
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