pub struct Taste {
pub schema: String,
pub capsule: TasteCapsule,
pub capsule_signature: String,
}Expand description
Full Taste manifest (content-addressed)
Fields§
§schema: String§capsule: TasteCapsule§capsule_signature: StringImplementations§
Source§impl Taste
impl Taste
pub fn uri(&self) -> &str
pub fn target_uri(&self) -> &str
pub fn timestamp_ms(&self) -> u64
pub fn embedded_core_key(&self) -> Option<&str>
pub fn verify_core_signature(&self, author_key: &str) -> Result<()>
pub fn verify_capsule_signature(&self, host_key: &str) -> Result<()>
pub fn verify_signatures(&self, host_key: &str, author_key: &str) -> Result<()>
Sourcepub fn verify_self_hosted_signatures(&self, key: &str) -> Result<()>
pub fn verify_self_hosted_signatures(&self, key: &str) -> Result<()>
Verify both signatures using the same key (self-hosted case where host == author).
pub fn computed_uri_hash(&self) -> Result<String>
pub fn verify_uri_hash(&self, expected_hash: &str) -> Result<()>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Taste
impl<'de> Deserialize<'de> for Taste
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 PrettyJson for Taste
impl PrettyJson for Taste
fn to_pretty_json(&self) -> Result<String>
Auto Trait Implementations§
impl Freeze for Taste
impl RefUnwindSafe for Taste
impl Send for Taste
impl Sync for Taste
impl Unpin for Taste
impl UnsafeUnpin for Taste
impl UnwindSafe for Taste
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