Struct aleo_rust::snarkvm_types::ProgramOwner
pub struct ProgramOwner<N>where
N: Network,{ /* private fields */ }
Implementations§
§impl<N> ProgramOwner<N>where
N: Network,
impl<N> ProgramOwner<N>where N: Network,
pub fn new<R>(
private_key: &PrivateKey<N>,
deployment_id: Field<N>,
rng: &mut R
) -> Result<ProgramOwner<N>, Error>where
R: Rng + CryptoRng,
pub fn new<R>( private_key: &PrivateKey<N>, deployment_id: Field<N>, rng: &mut R ) -> Result<ProgramOwner<N>, Error>where R: Rng + CryptoRng,
Initializes a new program owner.
pub fn from(address: Address<N>, signature: Signature<N>) -> ProgramOwner<N>
pub fn from(address: Address<N>, signature: Signature<N>) -> ProgramOwner<N>
Initializes a new program owner from an address and signature.
Trait Implementations§
§impl<N> Clone for ProgramOwner<N>where
N: Clone + Network,
impl<N> Clone for ProgramOwner<N>where N: Clone + Network,
§fn clone(&self) -> ProgramOwner<N>
fn clone(&self) -> ProgramOwner<N>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl<N> Debug for ProgramOwner<N>where
N: Network,
impl<N> Debug for ProgramOwner<N>where N: Network,
§impl<'de, N> Deserialize<'de> for ProgramOwner<N>where
N: Network,
impl<'de, N> Deserialize<'de> for ProgramOwner<N>where N: Network,
§fn deserialize<D>(
deserializer: D
) -> Result<ProgramOwner<N>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<ProgramOwner<N>, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserializes the owner from a string or bytes.
§impl<N> Display for ProgramOwner<N>where
N: Network,
impl<N> Display for ProgramOwner<N>where N: Network,
§impl<N> FromBytes for ProgramOwner<N>where
N: Network,
impl<N> FromBytes for ProgramOwner<N>where N: Network,
§impl<N> FromStr for ProgramOwner<N>where
N: Network,
impl<N> FromStr for ProgramOwner<N>where N: Network,
§impl<N> Hash for ProgramOwner<N>where
N: Hash + Network,
impl<N> Hash for ProgramOwner<N>where N: Hash + Network,
§impl<N> PartialEq<ProgramOwner<N>> for ProgramOwner<N>where
N: PartialEq<N> + Network,
impl<N> PartialEq<ProgramOwner<N>> for ProgramOwner<N>where N: PartialEq<N> + Network,
§fn eq(&self, other: &ProgramOwner<N>) -> bool
fn eq(&self, other: &ProgramOwner<N>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl<N> Serialize for ProgramOwner<N>where
N: Network,
impl<N> Serialize for ProgramOwner<N>where N: Network,
§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,
Serializes the program owner into string or bytes.
§impl<N> ToBytes for ProgramOwner<N>where
N: Network,
impl<N> ToBytes for ProgramOwner<N>where N: Network,
impl<N> Copy for ProgramOwner<N>where N: Copy + Network,
impl<N> Eq for ProgramOwner<N>where N: Eq + Network,
impl<N> StructuralEq for ProgramOwner<N>where N: Network,
impl<N> StructuralPartialEq for ProgramOwner<N>where N: Network,
Auto Trait Implementations§
impl<N> RefUnwindSafe for ProgramOwner<N>where <N as Environment>::Projective: RefUnwindSafe, <N as Environment>::Scalar: RefUnwindSafe,
impl<N> Send for ProgramOwner<N>
impl<N> Sync for ProgramOwner<N>
impl<N> Unpin for ProgramOwner<N>where <N as Environment>::Projective: Unpin, <N as Environment>::Scalar: Unpin,
impl<N> UnwindSafe for ProgramOwner<N>where <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
§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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.