Struct ckb_jsonrpc_types::ProposalShortId
source · [−]Expand description
The 10-byte fixed-length binary encoded as a 0x-prefixed hex string in JSON.
Example
0xa0ef4eb5f4ceeb08a4c8
Tuple Fields
0: [u8; 10]
Implementations
Trait Implementations
sourceimpl Clone for ProposalShortId
impl Clone for ProposalShortId
sourcefn clone(&self) -> ProposalShortId
fn clone(&self) -> ProposalShortId
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ProposalShortId
impl Debug for ProposalShortId
sourceimpl Default for ProposalShortId
impl Default for ProposalShortId
sourcefn default() -> ProposalShortId
fn default() -> ProposalShortId
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ProposalShortId
impl<'de> Deserialize<'de> for ProposalShortId
sourcefn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl From<ProposalShortId> for ProposalShortId
impl From<ProposalShortId> for ProposalShortId
sourcefn from(core: ProposalShortId) -> ProposalShortId
fn from(core: ProposalShortId) -> ProposalShortId
Converts to this type from the input type.
sourceimpl From<ProposalShortId> for ProposalShortId
impl From<ProposalShortId> for ProposalShortId
sourcefn from(json: ProposalShortId) -> Self
fn from(json: ProposalShortId) -> Self
Converts to this type from the input type.
sourceimpl Hash for ProposalShortId
impl Hash for ProposalShortId
sourceimpl PartialEq<ProposalShortId> for ProposalShortId
impl PartialEq<ProposalShortId> for ProposalShortId
sourcefn eq(&self, other: &ProposalShortId) -> bool
fn eq(&self, other: &ProposalShortId) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ProposalShortId) -> bool
fn ne(&self, other: &ProposalShortId) -> bool
This method tests for !=
.
sourceimpl Serialize for ProposalShortId
impl Serialize for ProposalShortId
impl Eq for ProposalShortId
impl StructuralEq for ProposalShortId
impl StructuralPartialEq for ProposalShortId
Auto Trait Implementations
impl RefUnwindSafe for ProposalShortId
impl Send for ProposalShortId
impl Sync for ProposalShortId
impl Unpin for ProposalShortId
impl UnwindSafe for ProposalShortId
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more