Struct crev_data::id::PublicId [−][src]
Expand description
A unique ID accompanied by publically identifying data.
Fields
id: Id
url: Option<Url>
Implementations
impl PublicId
[src]
impl PublicId
[src]pub fn new(id: Id, url: Url) -> Self
[src]
pub fn new_id_only(id: Id) -> Self
[src]
pub fn new_from_pubkey(v: Vec<u8>, url: Option<Url>) -> Result<Self, IdError>
[src]
pub fn new_crevid_from_base64(s: &str, url: Url) -> Result<Self, IdError>
[src]
pub fn create_trust_proof<'a>(
&self,
ids: impl IntoIterator<Item = &'a PublicId>,
trust_level: TrustLevel
) -> Result<Trust, Error>
[src]
&self,
ids: impl IntoIterator<Item = &'a PublicId>,
trust_level: TrustLevel
) -> Result<Trust, Error>
pub fn create_package_review_proof(
&self,
package: PackageInfo,
review: Review,
comment: String
) -> Result<Package, Error>
[src]
&self,
package: PackageInfo,
review: Review,
comment: String
) -> Result<Package, Error>
pub fn url_display(&self) -> &str
[src]
Trait Implementations
impl<'de> Deserialize<'de> for PublicId
[src]
impl<'de> Deserialize<'de> for PublicId
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl Eq for PublicId
[src]
impl StructuralEq for PublicId
[src]
impl StructuralPartialEq for PublicId
[src]
Auto Trait Implementations
impl RefUnwindSafe for PublicId
impl Send for PublicId
impl Sync for PublicId
impl Unpin for PublicId
impl UnwindSafe for PublicId
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,