InsertResponse

Type Alias InsertResponse 

Source
pub type InsertResponse = ObjectId;
Expand description

Service response for insert operations.

Aliased Type§

pub struct InsertResponse {
    pub context: ObjectContext,
    pub key: String,
}

Fields§

§context: ObjectContext

The usecase and scopes this object belongs to.

§key: String

This 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.