spiffe_rs/workloadapi/
x509context.rs

1use crate::bundle::x509bundle;
2use crate::svid::x509svid;
3
4#[derive(Debug)]
5pub struct X509Context {
6    pub svids: Vec<x509svid::SVID>,
7    pub bundles: x509bundle::Set,
8}
9
10impl X509Context {
11    pub fn default_svid(&self) -> Option<x509svid::SVID> {
12        self.svids.first().cloned()
13    }
14}