pub enum RetrievedEntity {
Observation(Observation),
Summary(Summary),
}Expand description
Domain types re-exported from kindling_types so the daemon client is a
self-contained SDK: depend on kindling-client alone and reach every type
the API sends or returns as kindling_client::<Type>. kindling-types
stays an internal transitive dependency you never have to name.
An entity returned from retrieval — either an observation or a summary.
Untagged so the wire format matches the TS structural union Observation | Summary.
Variants§
Observation(Observation)
Summary(Summary)
Trait Implementations§
Source§impl Clone for RetrievedEntity
impl Clone for RetrievedEntity
Source§fn clone(&self) -> RetrievedEntity
fn clone(&self) -> RetrievedEntity
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RetrievedEntity
impl Debug for RetrievedEntity
Source§impl<'de> Deserialize<'de> for RetrievedEntity
impl<'de> Deserialize<'de> for RetrievedEntity
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RetrievedEntity, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RetrievedEntity, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RetrievedEntity
impl PartialEq for RetrievedEntity
Source§fn eq(&self, other: &RetrievedEntity) -> bool
fn eq(&self, other: &RetrievedEntity) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RetrievedEntity
impl Serialize for RetrievedEntity
Source§fn 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,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for RetrievedEntity
Auto Trait Implementations§
impl Freeze for RetrievedEntity
impl RefUnwindSafe for RetrievedEntity
impl Send for RetrievedEntity
impl Sync for RetrievedEntity
impl Unpin for RetrievedEntity
impl UnsafeUnpin for RetrievedEntity
impl UnwindSafe for RetrievedEntity
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
Mutably borrows from an owned value. Read more