pub struct Label(/* private fields */);
Implementations§
Source§impl Label
impl Label
pub fn new_int(int: &Int) -> Self
pub fn new_text(text: String) -> Self
pub fn kind(&self) -> LabelKind
pub fn as_int(&self) -> Option<Int>
pub fn as_text(&self) -> Option<String>
pub fn from_algorithm_id(id: AlgorithmId) -> Self
pub fn from_key_type(key_type: KeyType) -> Self
pub fn from_ec_key(ec_key: ECKey) -> Self
pub fn from_curve_type(curve_type: CurveType) -> Self
pub fn from_key_operation(key_op: KeyOperation) -> Self
Trait Implementations§
Source§impl Deserialize for Label
impl Deserialize for Label
fn deserialize<R: BufRead + Seek>( raw: &mut Deserializer<R>, ) -> Result<Self, DeserializeError>
Source§impl From<AlgorithmId> for Label
impl From<AlgorithmId> for Label
Source§fn from(id: AlgorithmId) -> Label
fn from(id: AlgorithmId) -> Label
Converts to this type from the input type.
Source§impl From<KeyOperation> for Label
impl From<KeyOperation> for Label
Source§fn from(id: KeyOperation) -> Label
fn from(id: KeyOperation) -> Label
Converts to this type from the input type.
Source§impl FromBytes for Label
impl FromBytes for Label
fn from_bytes(bytes: Vec<u8>) -> Result<Label, DeserializeError>
Source§impl Ord for Label
impl Ord for Label
Source§impl PartialOrd for Label
impl PartialOrd for Label
Source§impl Serialize for Label
impl Serialize for Label
fn serialize<'se, W: Write>( &self, serializer: &'se mut Serializer<W>, ) -> Result<&'se mut Serializer<W>>
Source§impl TryFrom<Label> for AlgorithmId
impl TryFrom<Label> for AlgorithmId
Source§impl TryFrom<Label> for KeyOperation
impl TryFrom<Label> for KeyOperation
impl Eq for Label
impl StructuralPartialEq for Label
Auto Trait Implementations§
impl Freeze for Label
impl RefUnwindSafe for Label
impl Send for Label
impl Sync for Label
impl Unpin for Label
impl UnwindSafe for Label
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