pub struct BuildResponse<N: Network> { /* private fields */ }Implementations§
Source§impl<N: Network> BuildResponse<N>
impl<N: Network> BuildResponse<N>
Sourcepub const fn new(
program_id: ProgramID<N>,
function_name: Identifier<N>,
proving_key: ProvingKey<N>,
verifying_key: VerifyingKey<N>,
) -> Self
pub const fn new( program_id: ProgramID<N>, function_name: Identifier<N>, proving_key: ProvingKey<N>, verifying_key: VerifyingKey<N>, ) -> Self
Initializes a new build response.
Sourcepub const fn program_id(&self) -> &ProgramID<N>
pub const fn program_id(&self) -> &ProgramID<N>
Returns the program ID.
Sourcepub const fn function_name(&self) -> &Identifier<N>
pub const fn function_name(&self) -> &Identifier<N>
Returns the function name.
Sourcepub const fn proving_key(&self) -> &ProvingKey<N>
pub const fn proving_key(&self) -> &ProvingKey<N>
Returns the proving key.
Sourcepub const fn verifying_key(&self) -> &VerifyingKey<N>
pub const fn verifying_key(&self) -> &VerifyingKey<N>
Returns the verifying key.
Trait Implementations§
Source§impl<'de, N: Network> Deserialize<'de> for BuildResponse<N>
impl<'de, N: Network> Deserialize<'de> for BuildResponse<N>
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserializes the build response from a string or bytes.
Auto Trait Implementations§
impl<N> Freeze for BuildResponse<N>
impl<N> RefUnwindSafe for BuildResponse<N>where
<N as Environment>::Field: RefUnwindSafe,
<<N as Environment>::PairingCurve as PairingEngine>::G1Affine: RefUnwindSafe,
impl<N> Send for BuildResponse<N>
impl<N> Sync for BuildResponse<N>
impl<N> Unpin for BuildResponse<N>
impl<N> UnwindSafe for BuildResponse<N>where
<N as Environment>::Field: UnwindSafe + RefUnwindSafe,
<<N as Environment>::PairingCurve as PairingEngine>::G1Affine: RefUnwindSafe,
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<'de, T> DeserializeExt<'de> for Twhere
T: DeserializeOwned,
impl<'de, T> DeserializeExt<'de> for Twhere
T: DeserializeOwned,
fn take_from_value<D>(
value: &mut Value,
field: &str,
) -> Result<T, <D as Deserializer<'de>>::Error>where
D: Deserializer<'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 more