pub struct NoConfidence(/* private fields */);Implementations§
Source§impl NoConfidence
impl NoConfidence
Sourcepub fn to_cbor_bytes(&self) -> Vec<u8> ⓘ
pub fn to_cbor_bytes(&self) -> Vec<u8> ⓘ
- Serialize this type to CBOR bytes
- This type type supports encoding preservation so this will preserve round-trip CBOR formats.
- If created from scratch the CBOR will be canonical.
Sourcepub fn to_canonical_cbor_bytes(&self) -> Vec<u8> ⓘ
pub fn to_canonical_cbor_bytes(&self) -> Vec<u8> ⓘ
- Serialize this type to CBOR bytes using canonical CBOR encodings
Sourcepub fn from_cbor_bytes(cbor_bytes: &[u8]) -> Result<NoConfidence, JsError>
pub fn from_cbor_bytes(cbor_bytes: &[u8]) -> Result<NoConfidence, JsError>
- Create this type from CBOR bytes
Sourcepub fn to_cbor_hex(&self) -> String
pub fn to_cbor_hex(&self) -> String
- Serialize this type to CBOR bytes encoded as a hex string (useful for working with CIP30).
- This type type supports encoding preservation so this will preserve round-trip CBOR formats.
- If created from scratch the CBOR will be canonical.
Sourcepub fn to_canonical_cbor_hex(&self) -> String
pub fn to_canonical_cbor_hex(&self) -> String
- Serialize this type to CBOR bytes using canonical CBOR encodings as hex bytes
Sourcepub fn from_cbor_hex(cbor_bytes: &str) -> Result<NoConfidence, JsError>
pub fn from_cbor_hex(cbor_bytes: &str) -> Result<NoConfidence, JsError>
- Create this type from the CBOR bytes encoded as a hex string.
- This is useful for interfacing with CIP30
Source§impl NoConfidence
impl NoConfidence
Source§impl NoConfidence
impl NoConfidence
pub fn action_id(&self) -> Option<GovActionId>
pub fn new(action_id: Option<GovActionId>) -> Self
Trait Implementations§
Source§impl AsRef<NoConfidence> for NoConfidence
impl AsRef<NoConfidence> for NoConfidence
Source§fn as_ref(&self) -> &NoConfidence
fn as_ref(&self) -> &NoConfidence
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for NoConfidence
impl Clone for NoConfidence
Source§fn clone(&self) -> NoConfidence
fn clone(&self) -> NoConfidence
Returns a duplicate 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 NoConfidence
impl Debug for NoConfidence
Source§impl From<NoConfidence> for JsValue
impl From<NoConfidence> for JsValue
Source§fn from(value: NoConfidence) -> Self
fn from(value: NoConfidence) -> Self
Converts to this type from the input type.
Source§impl From<NoConfidence> for NoConfidence
impl From<NoConfidence> for NoConfidence
Source§fn from(native: NoConfidence) -> Self
fn from(native: NoConfidence) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for NoConfidence
impl FromWasmAbi for NoConfidence
Source§impl Into<NoConfidence> for NoConfidence
impl Into<NoConfidence> for NoConfidence
Source§fn into(self) -> NoConfidence
fn into(self) -> NoConfidence
Converts this type into the (usually inferred) input type.
Source§impl IntoWasmAbi for NoConfidence
impl IntoWasmAbi for NoConfidence
Source§impl LongRefFromWasmAbi for NoConfidence
impl LongRefFromWasmAbi for NoConfidence
Source§impl OptionFromWasmAbi for NoConfidence
impl OptionFromWasmAbi for NoConfidence
Source§impl OptionIntoWasmAbi for NoConfidence
impl OptionIntoWasmAbi for NoConfidence
Source§impl RefFromWasmAbi for NoConfidence
impl RefFromWasmAbi for NoConfidence
Source§type Anchor = RcRef<NoConfidence>
type Anchor = RcRef<NoConfidence>
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.Source§impl RefMutFromWasmAbi for NoConfidence
impl RefMutFromWasmAbi for NoConfidence
Source§impl TryFromJsValue for NoConfidence
impl TryFromJsValue for NoConfidence
Source§impl VectorFromWasmAbi for NoConfidence
impl VectorFromWasmAbi for NoConfidence
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[NoConfidence]>
Source§impl VectorIntoJsValue for NoConfidence
impl VectorIntoJsValue for NoConfidence
fn vector_into_jsvalue(vector: Box<[NoConfidence]>) -> JsValue
Source§impl VectorIntoWasmAbi for NoConfidence
impl VectorIntoWasmAbi for NoConfidence
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[NoConfidence]>) -> Self::Abi
Source§impl WasmDescribeVector for NoConfidence
impl WasmDescribeVector for NoConfidence
impl SupportsConstructor for NoConfidence
impl SupportsInstanceProperty for NoConfidence
impl SupportsStaticProperty for NoConfidence
Auto Trait Implementations§
impl Freeze for NoConfidence
impl RefUnwindSafe for NoConfidence
impl Send for NoConfidence
impl Sync for NoConfidence
impl Unpin for NoConfidence
impl UnwindSafe for NoConfidence
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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,
Source§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.