pub type InsertResponse = ObjectId;Expand description
Service response for insert operations.
Aliased Type§
pub struct InsertResponse {
pub context: ObjectContext,
pub key: String,
}Fields§
§context: ObjectContextThe usecase and scopes this object belongs to.
key: StringThis key uniquely identifies the object within its usecase and scopes.
Note that keys can be reused across different contexts. Only in combination with the context a key makes a unique identifier.
Keys can be assigned by the service. For this, use ObjectId::random.