Struct holochain_types::record::RawGetEntryResponse
source · pub struct RawGetEntryResponse {
pub live_actions: BTreeSet<WireActionStatus<WireNewEntryAction>>,
pub deletes: Vec<WireActionStatus<WireDelete>>,
pub updates: Vec<WireActionStatus<WireUpdateRelationship>>,
pub entry: Entry,
pub entry_type: EntryType,
}
Expand description
This type gives full metadata that can be combined monotonically with other metadata and the actual data
Fields§
§live_actions: BTreeSet<WireActionStatus<WireNewEntryAction>>
The live actions from this authority. These can be collapsed to NewEntryActionLight Which omits the EntryHash and EntryType, saving 32 bytes each
deletes: Vec<WireActionStatus<WireDelete>>
just the hashes of actions to delete
updates: Vec<WireActionStatus<WireUpdateRelationship>>
Any updates on this entry. Note you will need to ask for “all_live_actions_with_metadata” to get this back
entry: Entry
The entry shared across all actions
entry_type: EntryType
The entry_type shared across all actions
Implementations§
source§impl RawGetEntryResponse
impl RawGetEntryResponse
sourcepub fn from_records<E>(
records: E,
deletes: Vec<WireActionStatus<WireDelete>>,
updates: Vec<WireActionStatus<WireUpdateRelationship>>
) -> Option<Self>where
E: IntoIterator<Item = RecordStatus>,
pub fn from_records<E>( records: E, deletes: Vec<WireActionStatus<WireDelete>>, updates: Vec<WireActionStatus<WireUpdateRelationship>> ) -> Option<Self>where E: IntoIterator<Item = RecordStatus>,
Creates the response from a set of chain records that share the same entry with any deletes. Note: It’s the callers responsibility to check that records all have the same entry. This is not checked due to the performance cost.
Panics
If the records are not an action of Create or EntryDelete or there is no entry or the entry hash is different
Trait Implementations§
source§impl Clone for RawGetEntryResponse
impl Clone for RawGetEntryResponse
source§fn clone(&self) -> RawGetEntryResponse
fn clone(&self) -> RawGetEntryResponse
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RawGetEntryResponse
impl Debug for RawGetEntryResponse
source§impl<'de> Deserialize<'de> for RawGetEntryResponse
impl<'de> Deserialize<'de> for RawGetEntryResponse
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 PartialEq<RawGetEntryResponse> for RawGetEntryResponse
impl PartialEq<RawGetEntryResponse> for RawGetEntryResponse
source§fn eq(&self, other: &RawGetEntryResponse) -> bool
fn eq(&self, other: &RawGetEntryResponse) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for RawGetEntryResponse
impl Serialize for RawGetEntryResponse
source§impl TryFrom<&RawGetEntryResponse> for SerializedBytes
impl TryFrom<&RawGetEntryResponse> for SerializedBytes
§type Error = SerializedBytesError
type Error = SerializedBytesError
source§fn try_from(
t: &RawGetEntryResponse
) -> Result<SerializedBytes, SerializedBytesError>
fn try_from( t: &RawGetEntryResponse ) -> Result<SerializedBytes, SerializedBytesError>
source§impl TryFrom<RawGetEntryResponse> for SerializedBytes
impl TryFrom<RawGetEntryResponse> for SerializedBytes
§type Error = SerializedBytesError
type Error = SerializedBytesError
source§fn try_from(
t: RawGetEntryResponse
) -> Result<SerializedBytes, SerializedBytesError>
fn try_from( t: RawGetEntryResponse ) -> Result<SerializedBytes, SerializedBytesError>
source§impl TryFrom<SerializedBytes> for RawGetEntryResponse
impl TryFrom<SerializedBytes> for RawGetEntryResponse
§type Error = SerializedBytesError
type Error = SerializedBytesError
source§fn try_from(
sb: SerializedBytes
) -> Result<RawGetEntryResponse, SerializedBytesError>
fn try_from( sb: SerializedBytes ) -> Result<RawGetEntryResponse, SerializedBytesError>
impl StructuralPartialEq for RawGetEntryResponse
Auto Trait Implementations§
impl RefUnwindSafe for RawGetEntryResponse
impl Send for RawGetEntryResponse
impl Sync for RawGetEntryResponse
impl Unpin for RawGetEntryResponse
impl UnwindSafe for RawGetEntryResponse
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
§impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere W: DeserializeWith<F, T, D>, D: Fallible + ?Sized, F: ?Sized,
§fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut D ) -> Result<With<T, W>, <D as Fallible>::Error>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self
to the equivalent element of its superset.