pub struct SignerAttributes {
pub region: Option<String>,
pub expertise: Vec<String>,
pub nationality: Option<String>,
pub role: Vec<String>,
pub custom: HashMap<String, String>,
}Expand description
Attributes bound to a signer, used by predicate evaluation.
Fields§
§region: Option<String>Geographic region (e.g., “europe”, “asia-pacific”).
expertise: Vec<String>Areas of expertise.
nationality: Option<String>Nationality (used for conflict-of-interest exclusion).
role: Vec<String>Roles held by the signer.
custom: HashMap<String, String>Custom attribute key-value pairs.
Implementations§
Source§impl SignerAttributes
impl SignerAttributes
Sourcepub fn with_region(self, region: impl Into<String>) -> Self
pub fn with_region(self, region: impl Into<String>) -> Self
Set the region.
Sourcepub fn with_expertise(self, expertise: impl Into<String>) -> Self
pub fn with_expertise(self, expertise: impl Into<String>) -> Self
Add an expertise.
Trait Implementations§
Source§impl Clone for SignerAttributes
impl Clone for SignerAttributes
Source§fn clone(&self) -> SignerAttributes
fn clone(&self) -> SignerAttributes
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SignerAttributes
impl Debug for SignerAttributes
Source§impl Default for SignerAttributes
impl Default for SignerAttributes
Source§fn default() -> SignerAttributes
fn default() -> SignerAttributes
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SignerAttributes
impl<'de> Deserialize<'de> for SignerAttributes
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
Auto Trait Implementations§
impl Freeze for SignerAttributes
impl RefUnwindSafe for SignerAttributes
impl Send for SignerAttributes
impl Sync for SignerAttributes
impl Unpin for SignerAttributes
impl UnsafeUnpin for SignerAttributes
impl UnwindSafe for SignerAttributes
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