Enum edgedb_protocol::descriptors::Descriptor
source · pub enum Descriptor {
Set(SetDescriptor),
ObjectShape(ObjectShapeDescriptor),
BaseScalar(BaseScalarTypeDescriptor),
Scalar(ScalarTypeDescriptor),
Tuple(TupleTypeDescriptor),
NamedTuple(NamedTupleTypeDescriptor),
Array(ArrayTypeDescriptor),
Range(RangeTypeDescriptor),
Enumeration(EnumerationTypeDescriptor),
InputShape(InputShapeTypeDescriptor),
TypeAnnotation(TypeAnnotationDescriptor),
}
Variants§
Set(SetDescriptor)
ObjectShape(ObjectShapeDescriptor)
BaseScalar(BaseScalarTypeDescriptor)
Scalar(ScalarTypeDescriptor)
Tuple(TupleTypeDescriptor)
NamedTuple(NamedTupleTypeDescriptor)
Array(ArrayTypeDescriptor)
Range(RangeTypeDescriptor)
Enumeration(EnumerationTypeDescriptor)
InputShape(InputShapeTypeDescriptor)
TypeAnnotation(TypeAnnotationDescriptor)
Implementations§
source§impl Descriptor
impl Descriptor
pub fn id(&self) -> &Uuid
pub fn decode(buf: &mut Input) -> Result<Descriptor, DecodeError>
Trait Implementations§
source§impl Clone for Descriptor
impl Clone for Descriptor
source§fn clone(&self) -> Descriptor
fn clone(&self) -> Descriptor
Returns a copy 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 Descriptor
impl Debug for Descriptor
source§impl PartialEq<Descriptor> for Descriptor
impl PartialEq<Descriptor> for Descriptor
source§fn eq(&self, other: &Descriptor) -> bool
fn eq(&self, other: &Descriptor) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for Descriptor
impl StructuralEq for Descriptor
impl StructuralPartialEq for Descriptor
Auto Trait Implementations§
impl RefUnwindSafe for Descriptor
impl Send for Descriptor
impl Sync for Descriptor
impl Unpin for Descriptor
impl UnwindSafe for Descriptor
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