pub struct DeployRequest<N: Network> { /* private fields */ }Implementations§
Source§impl<N: Network> DeployRequest<N>
impl<N: Network> DeployRequest<N>
Sourcepub fn new(deployment: Deployment<N>, program_id: ProgramID<N>) -> Self
pub fn new(deployment: Deployment<N>, program_id: ProgramID<N>) -> Self
Sends the request to the given endpoint.
Sourcepub fn send(&self, endpoint: &str) -> Result<DeployResponse<N>>
pub fn send(&self, endpoint: &str) -> Result<DeployResponse<N>>
Sends the request to the given endpoint.
Sourcepub const fn deployment(&self) -> &Deployment<N>
pub const fn deployment(&self) -> &Deployment<N>
Returns the program.
Sourcepub const fn program_id(&self) -> &ProgramID<N>
pub const fn program_id(&self) -> &ProgramID<N>
Returns the imports.
Trait Implementations§
Source§impl<'de, N: Network> Deserialize<'de> for DeployRequest<N>
impl<'de, N: Network> Deserialize<'de> for DeployRequest<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 deploy request from a string or bytes.
Auto Trait Implementations§
impl<N> Freeze for DeployRequest<N>
impl<N> RefUnwindSafe for DeployRequest<N>where
<N as Environment>::Field: RefUnwindSafe,
N: RefUnwindSafe,
<<N as Environment>::PairingCurve as PairingEngine>::G1Affine: RefUnwindSafe,
<N as Environment>::Projective: RefUnwindSafe,
<N as Environment>::Scalar: RefUnwindSafe,
impl<N> Send for DeployRequest<N>
impl<N> Sync for DeployRequest<N>
impl<N> Unpin for DeployRequest<N>where
<N as Environment>::Field: Unpin,
N: Unpin,
<<N as Environment>::PairingCurve as PairingEngine>::G1Affine: Unpin,
<N as Environment>::Projective: Unpin,
<N as Environment>::Scalar: Unpin,
impl<N> UnwindSafe for DeployRequest<N>where
<N as Environment>::Field: UnwindSafe,
<<N as Environment>::PairingCurve as PairingEngine>::G1Affine: RefUnwindSafe + UnwindSafe,
N: UnwindSafe,
<N as Environment>::Projective: UnwindSafe,
<N as Environment>::Scalar: UnwindSafe,
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