Struct cardano_serialization_lib::Voter
source · pub struct Voter(/* private fields */);
Implementations§
source§impl Voter
impl Voter
pub fn from_bytes(bytes: Vec<u8>) -> Result<Voter, DeserializeError>
source§impl Voter
impl Voter
pub fn new_constitutional_committee_hot_credential(cred: &Credential) -> Self
pub fn new_drep_credential(cred: &Credential) -> Self
pub fn new_stake_pool_key_hash(key_hash: &Ed25519KeyHash) -> Self
pub fn kind(&self) -> VoterKind
pub fn to_constitutional_committee_hot_credential(&self) -> Option<Credential>
pub fn to_drep_credential(&self) -> Option<Credential>
pub fn to_stake_pool_key_hash(&self) -> Option<Ed25519KeyHash>
pub fn has_script_credentials(&self) -> bool
pub fn to_key_hash(&self) -> Option<Ed25519KeyHash>
Trait Implementations§
source§impl<'de> Deserialize<'de> for Voter
impl<'de> Deserialize<'de> for Voter
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 JsonSchema for Voter
impl JsonSchema for Voter
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresource§impl Ord for Voter
impl Ord for Voter
source§impl PartialOrd for Voter
impl PartialOrd for Voter
source§impl Serialize for Voter
impl Serialize for Voter
fn serialize<'se, W: Write>( &self, serializer: &'se mut Serializer<W>, ) -> Result<&'se mut Serializer<W>>
impl Eq for Voter
impl StructuralPartialEq for Voter
Auto Trait Implementations§
impl Freeze for Voter
impl RefUnwindSafe for Voter
impl Send for Voter
impl Sync for Voter
impl Unpin for Voter
impl UnwindSafe for Voter
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)