pub struct NativeScriptWitnessInfo(/* private fields */);Implementations§
source§impl NativeScriptWitnessInfo
impl NativeScriptWitnessInfo
sourcepub fn num_signatures(num: usize) -> Self
pub fn num_signatures(num: usize) -> Self
Unsure which keys will sign, but you know the exact number to save on tx fee
sourcepub fn vkeys(vkeys: &Ed25519KeyHashList) -> Self
pub fn vkeys(vkeys: &Ed25519KeyHashList) -> Self
This native script will be witnessed by exactly these keys
sourcepub fn assume_signature_count() -> Self
pub fn assume_signature_count() -> Self
You don’t know how many keys will sign, so the maximum possible case will be assumed
Trait Implementations§
source§impl AsRef<NativeScriptWitnessInfo> for NativeScriptWitnessInfo
impl AsRef<NativeScriptWitnessInfo> for NativeScriptWitnessInfo
source§fn as_ref(&self) -> &NativeScriptWitnessInfo
fn as_ref(&self) -> &NativeScriptWitnessInfo
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for NativeScriptWitnessInfo
impl Clone for NativeScriptWitnessInfo
source§fn clone(&self) -> NativeScriptWitnessInfo
fn clone(&self) -> NativeScriptWitnessInfo
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 moresource§impl Debug for NativeScriptWitnessInfo
impl Debug for NativeScriptWitnessInfo
source§impl From<NativeScriptWitnessInfo> for JsValue
impl From<NativeScriptWitnessInfo> for JsValue
source§fn from(value: NativeScriptWitnessInfo) -> Self
fn from(value: NativeScriptWitnessInfo) -> Self
Converts to this type from the input type.
source§impl From<NativeScriptWitnessInfo> for NativeScriptWitnessInfo
impl From<NativeScriptWitnessInfo> for NativeScriptWitnessInfo
source§fn from(native: NativeScriptWitnessInfo) -> Self
fn from(native: NativeScriptWitnessInfo) -> Self
Converts to this type from the input type.
source§impl Into<NativeScriptWitnessInfo> for NativeScriptWitnessInfo
impl Into<NativeScriptWitnessInfo> for NativeScriptWitnessInfo
source§fn into(self) -> NativeScriptWitnessInfo
fn into(self) -> NativeScriptWitnessInfo
Converts this type into the (usually inferred) input type.
source§impl RefFromWasmAbi for NativeScriptWitnessInfo
impl RefFromWasmAbi for NativeScriptWitnessInfo
§type Anchor = Ref<'static, NativeScriptWitnessInfo>
type Anchor = Ref<'static, NativeScriptWitnessInfo>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Auto Trait Implementations§
impl Freeze for NativeScriptWitnessInfo
impl RefUnwindSafe for NativeScriptWitnessInfo
impl Send for NativeScriptWitnessInfo
impl Sync for NativeScriptWitnessInfo
impl Unpin for NativeScriptWitnessInfo
impl UnwindSafe for NativeScriptWitnessInfo
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<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 moresource§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abisource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.