MCPcopy Create free account
hub / github.com/archlinux/alpm / new

Method new

python-alpm/src/types/openpgp.rs:57–60  ·  view source on GitHub ↗
(key_id: &str)

Source from the content-addressed store, hash-verified

55impl OpenPGPKeyId {
56 #[new]
57 fn new(key_id: &str) -> Result<Self, crate::types::Error> {
58 let inner = alpm_types::OpenPGPKeyId::new(key_id.into())?;
59 Ok(Self(inner))
60 }
61
62 fn __repr__(&self) -> String {
63 format!("OpenPGPKeyId('{}')", self.0)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected