Struct ckb_jsonrpc_types::ProposalShortId
source · pub struct ProposalShortId(pub [u8; 10]);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§
source§impl ProposalShortId
impl ProposalShortId
sourcepub fn new(inner: [u8; 10]) -> ProposalShortId
pub fn new(inner: [u8; 10]) -> ProposalShortId
Creates the proposal id from array.
sourcepub fn into_inner(self) -> [u8; 10]
pub fn into_inner(self) -> [u8; 10]
Converts into the inner bytes array.
Trait Implementations§
source§impl Clone for ProposalShortId
impl Clone for ProposalShortId
source§fn clone(&self) -> ProposalShortId
fn clone(&self) -> ProposalShortId
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 ProposalShortId
impl Debug for ProposalShortId
source§impl Default for ProposalShortId
impl Default for ProposalShortId
source§fn default() -> ProposalShortId
fn default() -> ProposalShortId
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ProposalShortId
impl<'de> Deserialize<'de> for ProposalShortId
source§fn 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
source§impl<'a> From<&'a ProposalShortId> for ProposalShortId
impl<'a> From<&'a ProposalShortId> for ProposalShortId
source§fn from(core: &'a ProposalShortId) -> ProposalShortId
fn from(core: &'a ProposalShortId) -> ProposalShortId
Converts to this type from the input type.
source§impl From<ProposalShortId> for ProposalShortId
impl From<ProposalShortId> for ProposalShortId
source§fn from(core: ProposalShortId) -> ProposalShortId
fn from(core: ProposalShortId) -> ProposalShortId
Converts to this type from the input type.
source§impl From<ProposalShortId> for ProposalShortId
impl From<ProposalShortId> for ProposalShortId
source§fn from(json: ProposalShortId) -> Self
fn from(json: ProposalShortId) -> Self
Converts to this type from the input type.
source§impl Hash for ProposalShortId
impl Hash for ProposalShortId
source§impl PartialEq<ProposalShortId> for ProposalShortId
impl PartialEq<ProposalShortId> for ProposalShortId
source§fn 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 ==.source§impl 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§
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