pub struct RequestOperation {
pub execution: Execution,
pub metadata: Option<Metadata>,
pub operation_map_key: String,
pub persisted_document_hash: Option<PersistedDocumentHash>,
pub timestamp: u64,
}Expand description
RequestOperation
JSON schema
{
"title": "RequestOperation",
"type": "object",
"required": [
"execution",
"operationMapKey",
"timestamp"
],
"properties": {
"execution": {
"title": "Execution",
"type": "object",
"required": [
"duration",
"errorsTotal",
"ok"
],
"properties": {
"duration": {
"type": "integer",
"minimum": 0.0
},
"errorsTotal": {
"type": "integer",
"minimum": 0.0
},
"ok": {
"type": "boolean"
}
},
"additionalProperties": false
},
"metadata": {
"title": "Metadata",
"type": "object",
"properties": {
"client": {
"title": "Client",
"type": "object",
"required": [
"name",
"version"
],
"properties": {
"name": {
"type": "string"
},
"version": {
"type": "string"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"operationMapKey": {
"type": "string"
},
"persistedDocumentHash": {
"title": "PersistedDocumentHash",
"type": "string",
"pattern": "^[a-zA-Z0-9_-]{1,64}~[a-zA-Z0-9._-]{1,64}~([A-Za-z]|[0-9]|_){1,128}$"
},
"timestamp": {
"type": "integer",
"minimum": 0.0
}
},
"additionalProperties": false
}Fields§
§execution: Execution§metadata: Option<Metadata>§operation_map_key: String§persisted_document_hash: Option<PersistedDocumentHash>§timestamp: u64Trait Implementations§
Source§impl Clone for RequestOperation
impl Clone for RequestOperation
Source§fn clone(&self) -> RequestOperation
fn clone(&self) -> RequestOperation
Returns a duplicate 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 RequestOperation
impl Debug for RequestOperation
Source§impl<'de> Deserialize<'de> for RequestOperation
impl<'de> Deserialize<'de> for RequestOperation
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
Auto Trait Implementations§
impl Freeze for RequestOperation
impl RefUnwindSafe for RequestOperation
impl Send for RequestOperation
impl Sync for RequestOperation
impl Unpin for RequestOperation
impl UnsafeUnpin for RequestOperation
impl UnwindSafe for RequestOperation
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