Struct google_datastore1::EntityResult
source · pub struct EntityResult {
pub cursor: Option<String>,
pub version: Option<String>,
pub entity: Option<Entity>,
}
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§
§cursor: Option<String>
A cursor that points to the position after the result entity.
Set only when the EntityResult
is part of a QueryResultBatch
message.
version: Option<String>
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.
entity: Option<Entity>
The resulting entity.
Trait Implementations§
source§impl Clone for EntityResult
impl Clone for EntityResult
source§fn clone(&self) -> EntityResult
fn clone(&self) -> EntityResult
Returns a copy of the value. Read more
1.0.0 · 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 EntityResult
impl Debug for EntityResult
source§impl Default for EntityResult
impl Default for EntityResult
source§fn default() -> EntityResult
fn default() -> EntityResult
Returns the “default value” for a type. Read more
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>,
Deserialize this value from the given Serde deserializer. Read more
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
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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>
Converts
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>
Converts
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