pub struct Object { /* private fields */ }
Implementations§
source§impl Object
impl Object
pub fn new( ident: Identifier, number: FieldNumber, fields: Vec<FieldDefinition> ) -> Result<Self, Error>
pub fn parse<S: AsRef<str>>(object: S) -> Result<Self, Error>
pub fn lookup_field( &self, ident: &Identifier ) -> Result<&FieldDefinition, Error>
pub fn to_protoql(&self) -> String
pub fn describe_keys(&self, prefix: &str) -> Vec<String>
Trait Implementations§
source§impl PartialEq for Object
impl PartialEq for Object
impl Eq for Object
impl StructuralPartialEq for Object
Auto Trait Implementations§
impl RefUnwindSafe for Object
impl Send for Object
impl Sync for Object
impl Unpin for Object
impl UnwindSafe for Object
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