Struct edgedb_protocol::descriptors::Typedesc
source · pub struct Typedesc { /* private fields */ }
Implementations§
source§impl Typedesc
impl Typedesc
pub fn id(&self) -> &Uuid
pub fn descriptors(&self) -> &[Descriptor]
pub fn root_pos(&self) -> Option<TypePos>
pub fn build_codec(&self) -> Result<Arc<dyn Codec>, CodecError>
pub fn get(&self, type_pos: TypePos) -> Result<&Descriptor, CodecError>
pub fn nothing(protocol: &ProtocolVersion) -> Typedesc
pub fn is_empty_tuple(&self) -> bool
pub fn root(&self) -> Option<&Descriptor>
pub fn as_query_arg_context(&self) -> DescriptorContext<'_>
pub fn as_queryable_context(&self) -> DescriptorContext<'_>
pub fn serialize_state(&self, state: &StateBorrow<'_>) -> Result<State, Error>
pub fn proto(&self) -> &ProtocolVersion
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Typedesc
impl Send for Typedesc
impl Sync for Typedesc
impl Unpin for Typedesc
impl UnwindSafe for Typedesc
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