Skip to main content

DocumentV0Getters

Trait DocumentV0Getters 

Source
pub trait DocumentV0Getters {
Show 20 methods // Required methods fn id(&self) -> Identifier; fn owner_id(&self) -> Identifier; fn properties(&self) -> &BTreeMap<String, Value>; fn properties_mut(&mut self) -> &mut BTreeMap<String, Value>; fn revision(&self) -> Option<Revision>; fn created_at(&self) -> Option<TimestampMillis>; fn updated_at(&self) -> Option<TimestampMillis>; fn transferred_at(&self) -> Option<TimestampMillis>; fn id_ref(&self) -> &Identifier; fn owner_id_ref(&self) -> &Identifier; fn properties_consumed(self) -> BTreeMap<String, Value>; fn created_at_block_height(&self) -> Option<u64>; fn updated_at_block_height(&self) -> Option<u64>; fn transferred_at_block_height(&self) -> Option<u64>; fn created_at_core_block_height(&self) -> Option<u32>; fn updated_at_core_block_height(&self) -> Option<u32>; fn transferred_at_core_block_height(&self) -> Option<u32>; fn creator_id(&self) -> Option<Identifier>; fn contract_version(&self) -> Option<u32>; // Provided method fn get(&self, path: &str) -> Option<&Value> { ... }
}

Required Methods§

Source

fn id(&self) -> Identifier

Returns the unique document ID.

Source

fn owner_id(&self) -> Identifier

Returns the ID of the document’s owner.

Source

fn properties(&self) -> &BTreeMap<String, Value>

Returns the document’s properties (data).

Source

fn properties_mut(&mut self) -> &mut BTreeMap<String, Value>

Returns a mutable reference to the document’s properties (data).

Source

fn revision(&self) -> Option<Revision>

Returns the document revision.

Source

fn created_at(&self) -> Option<TimestampMillis>

Returns the time in milliseconds that the document was created.

Source

fn updated_at(&self) -> Option<TimestampMillis>

Returns the time in milliseconds that the document was last updated.

Source

fn transferred_at(&self) -> Option<TimestampMillis>

Returns the time in milliseconds that the document was last transferred.

Source

fn id_ref(&self) -> &Identifier

Source

fn owner_id_ref(&self) -> &Identifier

Source

fn properties_consumed(self) -> BTreeMap<String, Value>

Source

fn created_at_block_height(&self) -> Option<u64>

Source

fn updated_at_block_height(&self) -> Option<u64>

Source

fn transferred_at_block_height(&self) -> Option<u64>

Source

fn created_at_core_block_height(&self) -> Option<u32>

Source

fn updated_at_core_block_height(&self) -> Option<u32>

Source

fn transferred_at_core_block_height(&self) -> Option<u32>

Source

fn creator_id(&self) -> Option<Identifier>

Source

fn contract_version(&self) -> Option<u32>

The data contract version this document’s bytes conform to (the serialization format 3 stamp); None for pre-stamp documents.

Provided Methods§

Source

fn get(&self, path: &str) -> Option<&Value>

Retrieves the field specified by the path. Returns None if the path is empty or if the field is not present.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§