ssi_vc/v2/data_model/
related_resource.rs

1use crate::Identified;
2
3/// Integrity metadata about each resource referenced by the verifiable
4/// credential.
5pub trait RelatedResource: Identified {
6    fn digest_sri(&self) -> &str;
7}
8
9impl RelatedResource for std::convert::Infallible {
10    fn digest_sri(&self) -> &str {
11        unreachable!()
12    }
13}