diff --git a/src/delegation.rs b/src/delegation.rs index 1c8790f6..aa59365b 100644 --- a/src/delegation.rs +++ b/src/delegation.rs @@ -92,6 +92,16 @@ impl, C: Codec> Delegation { &self.payload.audience } + /// Retrieve the `via` of a [`Delegation`] + pub fn via(&self) -> &Option { + &self.payload.via + } + + /// Retrieve the `command` of a [`Delegation`] + pub fn command(&self) -> &String { + &self.payload.command + } + /// Retrive the `policy` of a [`Delegation`] pub fn policy(&self) -> &Vec { &self.payload.policy