parameters: (self, appstruct)
return_statement: return base64.urlsafe_b64encode(sig + cstruct).rstrip(b'=')
docstring: Given an ``appstruct``, serialize and sign the data.
  
          Returns a bytestring.
docstring_summary: Given an ``appstruct``, serialize and sign the data.
docstring_tokens: Given an appstruct serialize and sign the data .
function: def dumps(self, appstruct):
          """
          Given an ``appstruct``, serialize and sign the data.
  
          Returns a bytestring.
          """
          cstruct = self.serializer.dumps(appstruct) # will be bytes
          sig = hmac.new(self.salted_secret, cstruct, self.digestmod).digest()
          return base64.urlsafe_b64encode(sig + cstruct).rstrip(b'=')
function_tokens: def dumps ( self , appstruct ) : cstruct = self . serializer . dumps ( appstruct ) # will be bytes sig = hmac . new ( self . salted_secret , cstruct , self . digestmod ) . digest ( ) return base64 . urlsafe_b64encode ( sig + cstruct ) . rstrip ( b'=' )