Struct holochain::prelude::RawGetEntryResponse
source · pub struct RawGetEntryResponse {
pub live_actions: BTreeSet<WireActionStatus<WireNewEntryAction>, Global>,
pub deletes: Vec<WireActionStatus<WireDelete>, Global>,
pub updates: Vec<WireActionStatus<WireUpdateRelationship>, Global>,
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>, Global>
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>, Global>
just the hashes of actions to delete
updates: Vec<WireActionStatus<WireUpdateRelationship>, Global>
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
sourceimpl RawGetEntryResponse
impl RawGetEntryResponse
sourcepub fn from_records<E>(
records: E,
deletes: Vec<WireActionStatus<WireDelete>, Global>,
updates: Vec<WireActionStatus<WireUpdateRelationship>, Global>
) -> Option<RawGetEntryResponse>where
E: IntoIterator<Item = RecordStatus>,
pub fn from_records<E>(
records: E,
deletes: Vec<WireActionStatus<WireDelete>, Global>,
updates: Vec<WireActionStatus<WireUpdateRelationship>, Global>
) -> Option<RawGetEntryResponse>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
sourceimpl Clone for RawGetEntryResponse
impl Clone for RawGetEntryResponse
sourcefn clone(&self) -> RawGetEntryResponse
fn clone(&self) -> RawGetEntryResponse
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl Debug for RawGetEntryResponse
impl Debug for RawGetEntryResponse
sourceimpl<'de> Deserialize<'de> for RawGetEntryResponse
impl<'de> Deserialize<'de> for RawGetEntryResponse
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<RawGetEntryResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<RawGetEntryResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
sourceimpl PartialEq<RawGetEntryResponse> for RawGetEntryResponse
impl PartialEq<RawGetEntryResponse> for RawGetEntryResponse
sourcefn eq(&self, other: &RawGetEntryResponse) -> bool
fn eq(&self, other: &RawGetEntryResponse) -> bool
sourceimpl Serialize for RawGetEntryResponse
impl Serialize for RawGetEntryResponse
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
sourceimpl TryFrom<&RawGetEntryResponse> for SerializedBytes
impl TryFrom<&RawGetEntryResponse> for SerializedBytes
type Error = SerializedBytesError
type Error = SerializedBytesError
sourcefn try_from(
t: &RawGetEntryResponse
) -> Result<SerializedBytes, SerializedBytesError>
fn try_from(
t: &RawGetEntryResponse
) -> Result<SerializedBytes, SerializedBytesError>
sourceimpl TryFrom<RawGetEntryResponse> for SerializedBytes
impl TryFrom<RawGetEntryResponse> for SerializedBytes
type Error = SerializedBytesError
type Error = SerializedBytesError
sourcefn try_from(
t: RawGetEntryResponse
) -> Result<SerializedBytes, SerializedBytesError>
fn try_from(
t: RawGetEntryResponse
) -> Result<SerializedBytes, SerializedBytesError>
sourceimpl TryFrom<SerializedBytes> for RawGetEntryResponse
impl TryFrom<SerializedBytes> for RawGetEntryResponse
type Error = SerializedBytesError
type Error = SerializedBytesError
sourcefn 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> Any for Twhere
T: Any + ?Sized,
impl<T> Any for Twhere
T: Any + ?Sized,
fn type_id_compat(&self) -> TypeId
fn type_id_compat(&self) -> TypeId
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
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>
impl<T> FutureExt for T
impl<T> FutureExt for T
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T>where
T: Future, type Output = <T as Future>::Output;
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T>where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
sourcefn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T>where
T: Future, type Output = <T as Future>::Output;
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T>where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T>where
T: Future, type Output = <T as Future>::Output;
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T>where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
sourcefn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T>where
T: Future, type Output = <T as Future>::Output;
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T>where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
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 morefn 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.impl<T> Upcastable for Twhere
T: 'static + Any + Send + Sync,
impl<T> Upcastable for Twhere
T: 'static + Any + Send + Sync,
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T>where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T>where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
T: Future, type Output = <T as Future>::Output;
sourcefn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T>where
T: Future, type Output = <T as Future>::Output;
fn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T>where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T>where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T>where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
T: Future, type Output = <T as Future>::Output;
sourcefn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T>where
T: Future, type Output = <T as Future>::Output;
fn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T>where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;