Struct google_datastore1_beta3::api::Entity
source · pub struct Entity {
pub key: Option<Key>,
pub properties: Option<HashMap<String, Value>>,
}
Expand description
A Datastore data object. Must not exceed 1 MiB - 4 bytes.
This type is not used in any activity, and only used as part of another schema.
Fields§
§key: Option<Key>
The entity’s key. An entity must have a key, unless otherwise documented (for example, an entity in Value.entity_value
may have no key). An entity’s kind is its key path’s last element’s kind, or null if it has no key.
properties: Option<HashMap<String, Value>>
The entity’s properties. The map’s keys are property names. A property name matching regex __.*__
is reserved. A reserved property name is forbidden in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Entity
impl<'de> Deserialize<'de> for Entity
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
impl Part for Entity
Auto Trait Implementations§
impl RefUnwindSafe for Entity
impl Send for Entity
impl Sync for Entity
impl Unpin for Entity
impl UnwindSafe for Entity
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