pub struct DeliverRequest {
pub schema: String,
pub version: u32,
pub decision_id: Handle,
pub record_schema: RecordSchema,
pub record: String,
pub record_digest: ContentDigest,
pub registration_id: RegistrationId,
pub signer: Signer,
pub service_build: String,
pub traceparent: Option<String>,
}Fields§
§schema: String§version: u32§decision_id: HandleA non-empty delivery key, at most 256 bytes (spec 003, 3.9.2).
record_schema: RecordSchema§record: StringExact UTF-8 canonical run-record bytes, not a re-rendered object.
record_digest: ContentDigest§registration_id: RegistrationId§signer: Signer§service_build: String§traceparent: Option<String>Trait Implementations§
Source§impl Clone for DeliverRequest
impl Clone for DeliverRequest
Source§impl Debug for DeliverRequest
impl Debug for DeliverRequest
Source§impl<'de> Deserialize<'de> for DeliverRequest
impl<'de> Deserialize<'de> for DeliverRequest
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
Source§impl Document for DeliverRequest
impl Document for DeliverRequest
Source§const SCHEMA: &'static str = DELIVER
const SCHEMA: &'static str = DELIVER
The schema string this document carries (spec 002, 3.2.1).
Source§const LIMITS: ParseLimits = DELIVER_LIMITS
const LIMITS: ParseLimits = DELIVER_LIMITS
The limit set its bytes are scanned against (spec 002, 3.2.5).
Source§fn parse(bytes: &[u8]) -> Result<Self, DocumentError>
fn parse(bytes: &[u8]) -> Result<Self, DocumentError>
Scan, deserialize and check the schema string.
Source§fn record_canonical(&self) -> Result<Vec<u8>, CanonicalError>where
Self: PartialEq,
fn record_canonical(&self) -> Result<Vec<u8>, CanonicalError>where
Self: PartialEq,
The record canonical bytes (spec 004, 5.6): the canonical bytes, with
finite fractional numbers written in shortest round-trip form.
Source§fn record_digest(&self) -> Result<ContentDigest, CanonicalError>where
Self: PartialEq,
fn record_digest(&self) -> Result<ContentDigest, CanonicalError>where
Self: PartialEq,
sha256(SCHEMA || 0x00 || record canonical bytes) (spec 004, 3.1.6).
Equal to the identity of an identified document.Source§impl JsonSchema for DeliverRequest
impl JsonSchema for DeliverRequest
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for DeliverRequest
impl PartialEq for DeliverRequest
Source§impl Serialize for DeliverRequest
impl Serialize for DeliverRequest
impl StructuralPartialEq for DeliverRequest
Auto Trait Implementations§
impl Freeze for DeliverRequest
impl RefUnwindSafe for DeliverRequest
impl Send for DeliverRequest
impl Sync for DeliverRequest
impl Unpin for DeliverRequest
impl UnsafeUnpin for DeliverRequest
impl UnwindSafe for DeliverRequest
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