Skip to main content

BuildRequestResult

Struct BuildRequestResult 

Source
pub struct BuildRequestResult {
    pub proof: String,
    pub body_hash: String,
    pub binding: String,
    pub timestamp: String,
    pub nonce: String,
    pub scope_hash: String,
    pub chain_hash: String,
    pub meta: Option<BuildMeta>,
}
Expand description

Result of high-level request proof building.

Contains all values the client needs to set as HTTP headers.

Fields§

§proof: String

The cryptographic proof (64-char lowercase hex)

§body_hash: String

The body hash (64-char lowercase hex)

§binding: String

The normalized binding string (METHOD|PATH|CANONICAL_QUERY)

§timestamp: String

The timestamp used (echoed back for header)

§nonce: String

The nonce used (echoed back for header)

§scope_hash: String

Scope hash (empty string if no scoping)

§chain_hash: String

Chain hash (empty string if no chaining)

§meta: Option<BuildMeta>

Debug metadata (only populated in debug builds)

Trait Implementations§

Source§

impl Debug for BuildRequestResult

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.