pub struct DocumentV0 {Show 14 fields
pub id: Identifier,
pub owner_id: Identifier,
pub properties: BTreeMap<String, Value>,
pub revision: Option<Revision>,
pub created_at: Option<TimestampMillis>,
pub updated_at: Option<TimestampMillis>,
pub transferred_at: Option<TimestampMillis>,
pub created_at_block_height: Option<BlockHeight>,
pub updated_at_block_height: Option<BlockHeight>,
pub transferred_at_block_height: Option<BlockHeight>,
pub created_at_core_block_height: Option<CoreBlockHeight>,
pub updated_at_core_block_height: Option<CoreBlockHeight>,
pub transferred_at_core_block_height: Option<CoreBlockHeight>,
pub creator_id: Option<Identifier>,
}Expand description
Documents contain the data that goes into data contracts.
Fields§
§id: IdentifierThe unique document ID.
owner_id: IdentifierThe ID of the document’s owner.
properties: BTreeMap<String, Value>The document’s properties (data).
revision: Option<Revision>The document revision, if the document is mutable.
created_at: Option<TimestampMillis>The time in milliseconds that the document was created, if it is set as required by the document type schema.
updated_at: Option<TimestampMillis>The time in milliseconds that the document was last updated, if it is set as required by the document type schema.
transferred_at: Option<TimestampMillis>The time in milliseconds that the document was last transferred, if it is set as required by the document type schema.
created_at_block_height: Option<BlockHeight>The block that the document was created, if it is set as required by the document type schema.
updated_at_block_height: Option<BlockHeight>The block that the document was last updated, if it is set as required by the document type schema.
transferred_at_block_height: Option<BlockHeight>The block that the document was last transferred to a new identity, if it is set as required by the document type schema.
created_at_core_block_height: Option<CoreBlockHeight>The core block that the document was created, if it is set as required by the document type schema.
updated_at_core_block_height: Option<CoreBlockHeight>The core block that the document was last updated, if it is set as required by the document type schema.
transferred_at_core_block_height: Option<CoreBlockHeight>The core block that the document was last transferred to a new identity, if it is set as required by the document type schema.
creator_id: Option<Identifier>The creator id.
Trait Implementations§
Source§impl Clone for DocumentV0
impl Clone for DocumentV0
Source§fn clone(&self) -> DocumentV0
fn clone(&self) -> DocumentV0
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DocumentV0
impl Debug for DocumentV0
Source§impl Default for DocumentV0
impl Default for DocumentV0
Source§fn default() -> DocumentV0
fn default() -> DocumentV0
Source§impl<'de> Deserialize<'de> for DocumentV0
impl<'de> Deserialize<'de> for DocumentV0
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Display for DocumentV0
impl Display for DocumentV0
Source§impl DocumentCborMethodsV0 for DocumentV0
impl DocumentCborMethodsV0 for DocumentV0
Source§fn from_cbor(
document_cbor: &[u8],
document_id: Option<[u8; 32]>,
owner_id: Option<[u8; 32]>,
_platform_version: &PlatformVersion,
) -> Result<Self, ProtocolError>
fn from_cbor( document_cbor: &[u8], document_id: Option<[u8; 32]>, owner_id: Option<[u8; 32]>, _platform_version: &PlatformVersion, ) -> Result<Self, ProtocolError>
Reads a CBOR-serialized document and creates a Document from it. If Document and Owner IDs are provided, they are used, otherwise they are created.
fn to_cbor_value(&self) -> Result<CborValue, ProtocolError>
Source§impl DocumentJsonMethodsV0<'_> for DocumentV0
impl DocumentJsonMethodsV0<'_> for DocumentV0
fn to_json_with_identifiers_using_bytes( &self, _platform_version: &PlatformVersion, ) -> Result<JsonValue, ProtocolError>
fn to_json( &self, _platform_version: &PlatformVersion, ) -> Result<JsonValue, ProtocolError>
fn from_json_value<S, E>( document_value: JsonValue, _platform_version: &PlatformVersion, ) -> Result<Self, ProtocolError>
Source§impl DocumentPlatformConversionMethodsV0 for DocumentV0
impl DocumentPlatformConversionMethodsV0 for DocumentV0
Source§fn serialize(
&self,
document_type: DocumentTypeRef<'_>,
contract: &DataContract,
platform_version: &PlatformVersion,
) -> Result<Vec<u8>, ProtocolError>
fn serialize( &self, document_type: DocumentTypeRef<'_>, contract: &DataContract, platform_version: &PlatformVersion, ) -> Result<Vec<u8>, ProtocolError>
Serializes the document.
The serialization of a document follows the pattern: id 32 bytes + owner_id 32 bytes + encoded values byte arrays
Source§fn from_bytes(
serialized_document: &[u8],
document_type: DocumentTypeRef<'_>,
platform_version: &PlatformVersion,
) -> Result<Self, ProtocolError>
fn from_bytes( serialized_document: &[u8], document_type: DocumentTypeRef<'_>, platform_version: &PlatformVersion, ) -> Result<Self, ProtocolError>
Reads a serialized document and creates a DocumentV0 from it.
Source§fn from_bytes_in_consensus(
serialized_document: &[u8],
document_type: DocumentTypeRef<'_>,
platform_version: &PlatformVersion,
) -> Result<ConsensusValidationResult<Self>, ProtocolError>
fn from_bytes_in_consensus( serialized_document: &[u8], document_type: DocumentTypeRef<'_>, platform_version: &PlatformVersion, ) -> Result<ConsensusValidationResult<Self>, ProtocolError>
Reads a serialized document and creates a DocumentV0 from it.
Source§fn serialize_specific_version(
&self,
document_type: DocumentTypeRef<'_>,
contract: &DataContract,
feature_version: FeatureVersion,
) -> Result<Vec<u8>, ProtocolError>
fn serialize_specific_version( &self, document_type: DocumentTypeRef<'_>, contract: &DataContract, feature_version: FeatureVersion, ) -> Result<Vec<u8>, ProtocolError>
Source§impl DocumentPlatformValueMethodsV0<'_> for DocumentV0
impl DocumentPlatformValueMethodsV0<'_> for DocumentV0
fn to_map_value(&self) -> Result<BTreeMap<String, Value>, ProtocolError>
fn into_map_value(self) -> Result<BTreeMap<String, Value>, ProtocolError>
fn into_value(self) -> Result<Value, ProtocolError>
fn to_object(&self) -> Result<Value, ProtocolError>
fn from_platform_value( document_value: Value, _platform_version: &PlatformVersion, ) -> Result<Self, ProtocolError>
Source§impl DocumentV0Getters for DocumentV0
impl DocumentV0Getters for DocumentV0
Source§fn id(&self) -> Identifier
fn id(&self) -> Identifier
Returns the document’s unique identifier.
§Returns
An Identifier representing the unique ID of the document.
Source§fn owner_id(&self) -> Identifier
fn owner_id(&self) -> Identifier
Source§fn properties(&self) -> &BTreeMap<String, Value>
fn properties(&self) -> &BTreeMap<String, Value>
Provides a reference to the document’s properties.
§Returns
A reference to a BTreeMap<String, Value> containing the document’s properties.
Source§fn properties_mut(&mut self) -> &mut BTreeMap<String, Value>
fn properties_mut(&mut self) -> &mut BTreeMap<String, Value>
Provides a mutable reference to the document’s properties.
§Returns
A mutable reference to a BTreeMap<String, Value> containing the document’s properties.
Source§fn revision(&self) -> Option<Revision>
fn revision(&self) -> Option<Revision>
Returns the document’s revision, if it is part of the document. The document will have this field if it’s schema has this document type as mutable.
§Returns
An Option<Revision> which is Some(Revision) if the document has a revision, or None if not.
Source§fn created_at(&self) -> Option<TimestampMillis>
fn created_at(&self) -> Option<TimestampMillis>
Returns the timestamp of when the document was created, if it is part of the document. The document will have this field if it’s schema has it set as required.
§Returns
An Option<TimestampMillis> representing the creation time in milliseconds, or None if not available.
Source§fn updated_at(&self) -> Option<TimestampMillis>
fn updated_at(&self) -> Option<TimestampMillis>
Returns the timestamp of the last update to the document, if it is part of the document. The document will have this field if it’s schema has it set as required.
§Returns
An Option<TimestampMillis> representing the update time in milliseconds, or None if not available.
Source§fn transferred_at(&self) -> Option<TimestampMillis>
fn transferred_at(&self) -> Option<TimestampMillis>
Returns the timestamp of the last time the document was transferred, if it is part of the document. The document will have this field if it’s schema has it set as required.
§Returns
An Option<TimestampMillis> representing the transferred at time in milliseconds, or None if not available.
Source§fn id_ref(&self) -> &Identifier
fn id_ref(&self) -> &Identifier
Provides a reference to the document’s unique identifier.
§Returns
A reference to an Identifier representing the unique ID of the document.
Source§fn owner_id_ref(&self) -> &Identifier
fn owner_id_ref(&self) -> &Identifier
Provides a reference to the document’s owner identifier.
§Returns
A reference to an Identifier representing the owner’s ID.
Source§fn properties_consumed(self) -> BTreeMap<String, Value>
fn properties_consumed(self) -> BTreeMap<String, Value>
Consumes the document and returns its properties.
§Returns
A BTreeMap<String, Value> containing the document’s properties.
Source§fn created_at_block_height(&self) -> Option<u64>
fn created_at_block_height(&self) -> Option<u64>
Returns the block height at which the document was created, if it is part of the document. The document will have this field if it’s schema has it set as required.
§Returns
An Option<u64> representing the creation block height, or None if not available.
Source§fn updated_at_block_height(&self) -> Option<u64>
fn updated_at_block_height(&self) -> Option<u64>
Returns the block height at which the document was last updated, if it is part of the document. The document will have this field if it’s schema has it set as required.
§Returns
An Option<u64> representing the update block height, or None if not available.
Source§fn transferred_at_block_height(&self) -> Option<u64>
fn transferred_at_block_height(&self) -> Option<u64>
Returns the block height of the last time the document was transferred, if it is part of the document. The document will have this field if it’s schema has it set as required.
§Returns
An Option<u64> representing the transfer block height, or None if not available.
Source§fn created_at_core_block_height(&self) -> Option<u32>
fn created_at_core_block_height(&self) -> Option<u32>
Returns the core network block height at which the document was created, if it is part of the document. The document will have this field if it’s schema has it set as required.
§Returns
An Option<u32> representing the creation core block height, or None if not available.
Source§fn updated_at_core_block_height(&self) -> Option<u32>
fn updated_at_core_block_height(&self) -> Option<u32>
Returns the core network block height at which the document was last updated, if it is part of the document. The document will have this field if it’s schema has it set as required.
§Returns
An Option<u32> representing the update core block height, or None if not available.
Source§fn transferred_at_core_block_height(&self) -> Option<u32>
fn transferred_at_core_block_height(&self) -> Option<u32>
Returns the core network block height of the last time the document was transferred, if it is part of the document. The document will have this field if it’s schema has it set as required.
§Returns
An Option<u32> representing the transfer core block height, or None if not available.
Source§fn creator_id(&self) -> Option<Identifier>
fn creator_id(&self) -> Option<Identifier>
Returns the creator identifier of the document, if it is part of the document. The document will have this field if it’s schema has it set as required.
§Returns
An Option<Identifier> representing the creator’s ID, or None if not available.
Source§impl DocumentV0Setters for DocumentV0
impl DocumentV0Setters for DocumentV0
Source§fn set_id(&mut self, id: Identifier)
fn set_id(&mut self, id: Identifier)
Sets the document’s unique identifier.
§Parameters
id: AnIdentifierto set as the document’s unique ID.
Source§fn set_owner_id(&mut self, owner_id: Identifier)
fn set_owner_id(&mut self, owner_id: Identifier)
Sets the identifier of the document’s owner.
§Parameters
owner_id: AnIdentifierto set as the document’s owner ID.
Source§fn set_properties(&mut self, properties: BTreeMap<String, Value>)
fn set_properties(&mut self, properties: BTreeMap<String, Value>)
Sets the document’s properties.
§Parameters
properties: ABTreeMap<String, Value>containing the properties to set for the document.
Source§fn set_revision(&mut self, revision: Option<Revision>)
fn set_revision(&mut self, revision: Option<Revision>)
Sets the document’s revision. This is applicable if the document’s schema indicates the document type as mutable.
§Parameters
revision: AnOption<Revision>to set as the document’s revision.Noneindicates the document does not have a revision.
Source§fn bump_revision(&mut self)
fn bump_revision(&mut self)
Bumps the document’s revision if it has one. This is applicable if the document’s schema indicates the document type as mutable.
Source§fn set_created_at(&mut self, created_at: Option<TimestampMillis>)
fn set_created_at(&mut self, created_at: Option<TimestampMillis>)
Sets the timestamp of when the document was created. This is applicable if the document’s schema requires a creation timestamp.
§Parameters
created_at: AnOption<TimestampMillis>to set as the document’s creation timestamp.Noneindicates the timestamp is not available.
Source§fn set_updated_at(&mut self, updated_at: Option<TimestampMillis>)
fn set_updated_at(&mut self, updated_at: Option<TimestampMillis>)
Sets the timestamp of the last update to the document. This is applicable if the document’s schema requires an update timestamp.
§Parameters
updated_at: AnOption<TimestampMillis>to set as the document’s last update timestamp.Noneindicates the timestamp is not available.
Source§fn set_created_at_block_height(&mut self, created_at_block_height: Option<u64>)
fn set_created_at_block_height(&mut self, created_at_block_height: Option<u64>)
Sets the block height at which the document was created. This is applicable if the document’s schema requires this information.
§Parameters
created_at_block_height: AnOption<u64>to set as the document’s creation block height.Noneindicates the block height is not available.
Source§fn set_updated_at_block_height(&mut self, updated_at_block_height: Option<u64>)
fn set_updated_at_block_height(&mut self, updated_at_block_height: Option<u64>)
Sets the block height at which the document was last updated. This is applicable if the document’s schema requires this information.
§Parameters
updated_at_block_height: AnOption<u64>to set as the document’s last update block height.Noneindicates the block height is not available.
Source§fn set_created_at_core_block_height(
&mut self,
created_at_core_block_height: Option<u32>,
)
fn set_created_at_core_block_height( &mut self, created_at_core_block_height: Option<u32>, )
Sets the core network block height at which the document was created. This is applicable if the document’s schema requires this information.
§Parameters
created_at_core_block_height: AnOption<u32>to set as the document’s creation core block height.Noneindicates the core block height is not available.
Source§fn set_updated_at_core_block_height(
&mut self,
updated_at_core_block_height: Option<u32>,
)
fn set_updated_at_core_block_height( &mut self, updated_at_core_block_height: Option<u32>, )
Sets the core network block height at which the document was last updated. This is applicable if the document’s schema requires this information.
§Parameters
updated_at_core_block_height: AnOption<u32>to set as the document’s last update core block height.Noneindicates the core block height is not available.
Source§fn set_creator_id(&mut self, creator_id: Option<Identifier>)
fn set_creator_id(&mut self, creator_id: Option<Identifier>)
Sets the creator identifier of the document. This is applicable if the document’s schema requires this information.
§Parameters
creator_id: AnOption<Identifier>to set as the document’s creator ID.Noneindicates the creator ID is not available.
fn set_transferred_at(&mut self, transferred_at: Option<TimestampMillis>)
fn set_transferred_at_block_height( &mut self, transferred_at_block_height: Option<u64>, )
fn set_transferred_at_core_block_height( &mut self, transferred_at_core_block_height: Option<u32>, )
Source§fn set(&mut self, path: &str, value: Value)
fn set(&mut self, path: &str, value: Value)
lodash JS library. Example: “root.people[0].name”.
If parents are not present, they will be automatically created.Source§fn remove(&mut self, path: &str) -> Option<Value>
fn remove(&mut self, path: &str) -> Option<Value>
lodash JS library. Example: “root.people[0].name”.
If parents are not present, they will be automatically created.Source§fn set_u8(&mut self, property_name: &str, value: u8)
fn set_u8(&mut self, property_name: &str, value: u8)
u8 value for the specified property name.Source§fn set_i8(&mut self, property_name: &str, value: i8)
fn set_i8(&mut self, property_name: &str, value: i8)
i8 value for the specified property name.Source§fn set_u16(&mut self, property_name: &str, value: u16)
fn set_u16(&mut self, property_name: &str, value: u16)
u16 value for the specified property name.Source§fn set_i16(&mut self, property_name: &str, value: i16)
fn set_i16(&mut self, property_name: &str, value: i16)
i16 value for the specified property name.Source§fn set_u32(&mut self, property_name: &str, value: u32)
fn set_u32(&mut self, property_name: &str, value: u32)
u32 value for the specified property name.Source§fn set_i32(&mut self, property_name: &str, value: i32)
fn set_i32(&mut self, property_name: &str, value: i32)
i32 value for the specified property name.Source§fn set_u64(&mut self, property_name: &str, value: u64)
fn set_u64(&mut self, property_name: &str, value: u64)
u64 value for the specified property name.Source§impl From<DocumentV0> for Document
impl From<DocumentV0> for Document
Source§fn from(value: DocumentV0) -> Self
fn from(value: DocumentV0) -> Self
Source§impl PartialEq for DocumentV0
impl PartialEq for DocumentV0
Source§impl Serialize for DocumentV0
impl Serialize for DocumentV0
impl JsonSafeFields for DocumentV0
impl StructuralPartialEq for DocumentV0
Auto Trait Implementations§
impl Freeze for DocumentV0
impl RefUnwindSafe for DocumentV0
impl Send for DocumentV0
impl Sync for DocumentV0
impl Unpin for DocumentV0
impl UnwindSafe for DocumentV0
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Conv for T
impl<T> Conv for T
§impl<T> CostsExt for T
impl<T> CostsExt for T
§fn wrap_with_cost(self, cost: OperationCost) -> CostContext<Self>where
Self: Sized,
fn wrap_with_cost(self, cost: OperationCost) -> CostContext<Self>where
Self: Sized,
CostContext object with provided costs.§fn wrap_fn_cost(
self,
f: impl FnOnce(&Self) -> OperationCost,
) -> CostContext<Self>where
Self: Sized,
fn wrap_fn_cost(
self,
f: impl FnOnce(&Self) -> OperationCost,
) -> CostContext<Self>where
Self: Sized,
CostContext object with costs computed using the
value getting wrapped.§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self to use its Binary implementation when Debug-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self to use its Display implementation when
Debug-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self to use its LowerExp implementation when
Debug-formatted.§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self to use its LowerHex implementation when
Debug-formatted.§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self to use its Octal implementation when Debug-formatted.§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self to use its Pointer implementation when
Debug-formatted.§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self to use its UpperExp implementation when
Debug-formatted.§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self to use its UpperHex implementation when
Debug-formatted.§fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T, U> IntoOnNetwork<U> for Twhere
U: FromOnNetwork<T>,
impl<T, U> IntoOnNetwork<U> for Twhere
U: FromOnNetwork<T>,
§fn into_on_network(self, network: Network) -> U
fn into_on_network(self, network: Network) -> U
Calls U::from_on_network(self).
§impl<T, U> IntoPlatformVersioned<U> for Twhere
U: FromPlatformVersioned<T>,
impl<T, U> IntoPlatformVersioned<U> for Twhere
U: FromPlatformVersioned<T>,
§fn into_platform_versioned(self, platform_version: &PlatformVersion) -> U
fn into_platform_versioned(self, platform_version: &PlatformVersion) -> U
§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read more§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self, then passes self.as_ref() into the pipe function.§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self, then passes self.as_mut() into the pipe
function.§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self, then passes self.deref() into the pipe function.§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> Tap for T
impl<T> Tap for T
§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B> of a value. Read more§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B> of a value. Read more§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R> view of a value. Read more§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R> view of a value. Read more§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target of a value. Read more§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target of a value. Read more§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap() only in debug builds, and is erased in release builds.§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut() only in debug builds, and is erased in release
builds.§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow() only in debug builds, and is erased in release
builds.§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut() only in debug builds, and is erased in release
builds.§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref() only in debug builds, and is erased in release
builds.§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut() only in debug builds, and is erased in release
builds.§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref() only in debug builds, and is erased in release
builds.