Struct qldb::Document [−][src]
pub struct Document { /* fields omitted */ }
Expand description
It contains the IonValue representing the QLDB Document.
It contains methods that will extract and try to transfor the IonValue to your type.
use qldb::{QldbExtractResult, Document}; fn test(document: Document) -> QldbExtractResult<u64> { let points: u64 = document.get_value("points")?; Ok(points) }
Implementations
Extract a value from the document and tries to transform to the value of the return type. Fails if the property is not there.
Trait Implementations
Extends a collection with the contents of an iterator. Read more
🔬 This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
🔬 This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
Auto Trait Implementations
impl RefUnwindSafe for Document
impl UnwindSafe for Document
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self