pub fn audience(&self) -> Option<Vec<&str>> {
        match self.claims.get("aud") {
            Some(Value::Array(vals)) => {
                let mut vec = Vec::with_capacity(vals.len());
                for val in vals {
                    match val {
                        Value::String(val2) => {
                            vec.push(val2.as_str());
                        }
                        _ => return None,
                    }
                }
                Some(vec)
            }
            Some(Value::String(val)) => Some(vec![val]),
            _ => None,
        }
    }
/// Return values for audience header claim (aud).
Return values for audience header claim (aud).
Return values for audience header claim ( aud ) .
pub fn audience(&self) -> Option<Vec<&str>> {
        match self.claims.get("aud") {
            Some(Value::Array(vals)) => {
                let mut vec = Vec::with_capacity(vals.len());
                for val in vals {
                    match val {
                        Value::String(val2) => {
                            vec.push(val2.as_str());
                        }
                        _ => return None,
                    }
                }
                Some(vec)
            }
            Some(Value::String(val)) => Some(vec![val]),
            _ => None,
        }
    }
pub fn audience ( & self ) -> Option < Vec < & str > > { match self . claims . get ( " " ) { Some ( Value :: Array ( vals ) ) => { let mut vec = Vec :: with_capacity ( vals . len ( ) ) ; for val in vals { match val { Value :: String ( val2 ) => { vec . push ( val2 . as_str ( ) ) ; } _ => return None , } } Some ( vec ) } Some ( Value :: String ( val ) ) => Some ( vec ! [ val ] ) , _ => None , } }
Return values for audience header claim (aud).
Return values for audience header claim ( aud ) .
&self
&self