pub struct EntityResult {
pub create_time: Option<DateTime<Utc>>,
pub cursor: Option<Vec<u8>>,
pub entity: Option<Entity>,
pub update_time: Option<DateTime<Utc>>,
pub version: Option<i64>,
}
Expand description
The result of fetching an entity from Datastore.
This type is not used in any activity, and only used as part of another schema.
Fields§
§create_time: Option<DateTime<Utc>>
The time at which the entity was created. This field is set for FULL
entity results. If this entity is missing, this field will not be set.
cursor: Option<Vec<u8>>
A cursor that points to the position after the result entity. Set only when the EntityResult
is part of a QueryResultBatch
message.
entity: Option<Entity>
The resulting entity.
update_time: Option<DateTime<Utc>>
The time at which the entity was last changed. This field is set for FULL
entity results. If this entity is missing, this field will not be set.
version: Option<i64>
The version of the entity, a strictly positive number that monotonically increases with changes to the entity. This field is set for FULL
entity results. For missing entities in LookupResponse
, this is the version of the snapshot that was used to look up the entity, and it is always set except for eventually consistent reads.
Trait Implementations§
Source§impl Clone for EntityResult
impl Clone for EntityResult
Source§fn clone(&self) -> EntityResult
fn clone(&self) -> EntityResult
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for EntityResult
impl Debug for EntityResult
Source§impl Default for EntityResult
impl Default for EntityResult
Source§fn default() -> EntityResult
fn default() -> EntityResult
Source§impl<'de> Deserialize<'de> for EntityResult
impl<'de> Deserialize<'de> for EntityResult
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 Serialize for EntityResult
impl Serialize for EntityResult
impl Part for EntityResult
Auto Trait Implementations§
impl Freeze for EntityResult
impl RefUnwindSafe for EntityResult
impl Send for EntityResult
impl Sync for EntityResult
impl Unpin for EntityResult
impl UnwindSafe for EntityResult
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,
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> 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