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 (const: unstable) · 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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 moreSource§impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
type Error = <Target as OctetsFrom<Source>>::Error
Source§fn try_octets_into(
self,
) -> Result<Target, <Source as OctetsInto<Target>>::Error>
fn try_octets_into( self, ) -> Result<Target, <Source as OctetsInto<Target>>::Error>
Performs the conversion.