pub fn seal(&self) -> Result<Biscuit, error::Token> {
        match &self.container {
            None => Err(error::Token::InternalError),
            Some(c) => {
                let container = c.seal()?;

                let mut token = self.clone();
                token.container = Some(container);

                Ok(token)
            }
        }
    }
/// creates a sealed version of the token
///
/// sealed tokens cannot be attenuated
creates a sealed version of the token
sealed tokens cannot be attenuated
creates a sealed version of the token sealed tokens cannot be attenuated
pub fn seal(&self) -> Result<Biscuit, error::Token> {
        match &self.container {
            None => Err(error::Token::InternalError),
            Some(c) => {
                let container = c.seal()?;
                let mut token = self.clone();
                token.container = Some(container);
                Ok(token)
            }
        }
    }
pub fn seal ( & self ) -> Result < Biscuit , error :: Token > { match & self . container { None => Err ( error :: Token :: InternalError ) , Some ( c ) => { let container = c . seal ( ) ? ; let mut token = self . clone ( ) ; token . container = Some ( container ) ; Ok ( token ) } } }
creates a sealed version of the token
sealed tokens cannot be attenuated
creates a sealed version of the token sealed tokens cannot be attenuated
&self
&self