Struct snarkvm_debug::package::BuildResponse
source · 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> 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