pub struct DocumentField { /* private fields */ }Expand description
One key-value field of a fetched document.
Implementations§
Source§impl DocumentField
impl DocumentField
Sourcepub const fn new(key: QueryVariable, source: DocumentSource) -> Self
pub const fn new(key: QueryVariable, source: DocumentSource) -> Self
Bind one document key to its value source.
Sourcepub const fn key(&self) -> &QueryVariable
pub const fn key(&self) -> &QueryVariable
Return the document key.
Sourcepub const fn source(&self) -> &DocumentSource
pub const fn source(&self) -> &DocumentSource
Return the value source.
Trait Implementations§
Source§impl Clone for DocumentField
impl Clone for DocumentField
Source§fn clone(&self) -> DocumentField
fn clone(&self) -> DocumentField
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DocumentField
impl Debug for DocumentField
impl Eq for DocumentField
Source§impl PartialEq for DocumentField
impl PartialEq for DocumentField
Source§impl Serialize for DocumentField
impl Serialize for DocumentField
impl StructuralPartialEq for DocumentField
Auto Trait Implementations§
impl Freeze for DocumentField
impl RefUnwindSafe for DocumentField
impl Send for DocumentField
impl Sync for DocumentField
impl Unpin for DocumentField
impl UnsafeUnpin for DocumentField
impl UnwindSafe for DocumentField
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