var searchIndex = {}; searchIndex["jsonwebtoken"] = {"doc":"Create and parses JWT (JSON Web Tokens)","items":[[3,"Header","jsonwebtoken","A basic JWT header part, the alg defaults to HS256 and typ is automatically\nset to `JWT`. All the other fields are optional",null,null],[12,"alg","","",0,null],[12,"jku","","",0,null],[12,"kid","","",0,null],[12,"x5u","","",0,null],[12,"x5t","","",0,null],[3,"TokenData","","The return type of a successful call to decode(...)",null,null],[12,"header","","",1,null],[12,"claims","","",1,null],[4,"Algorithm","","The algorithms supported for signing/verifying",null,null],[13,"HS256","","",2,null],[13,"HS384","","",2,null],[13,"HS512","","",2,null],[5,"encode","","Encode the claims passed and sign the payload using the algorithm from the header and the secret",null,null],[5,"decode","","Decode a token into a Claims struct\nIf the token or its signature is invalid, it will return an error",null,null],[0,"errors","","",null,null],[4,"Error","jsonwebtoken::errors","All the errors we can encounter while signing/verifying tokens\nand a couple of custom one for when the token we are trying\nto verify is invalid",null,null],[13,"EncodeJSON","","",3,null],[13,"DecodeBase64","","",3,null],[13,"DecodeJSON","","",3,null],[13,"Utf8","","",3,null],[13,"InvalidToken","","",3,null],[13,"InvalidSignature","","",3,null],[13,"WrongAlgorithmHeader","","",3,null],[11,"fmt","","",3,null],[11,"from","","",3,{"inputs":[{"name":"encodererror"}],"output":{"name":"error"}}],[11,"from","","",3,{"inputs":[{"name":"frombase64error"}],"output":{"name":"error"}}],[11,"from","","",3,{"inputs":[{"name":"decodererror"}],"output":{"name":"error"}}],[11,"from","","",3,{"inputs":[{"name":"fromutf8error"}],"output":{"name":"error"}}],[11,"description","","",3,null],[11,"cause","","",3,null],[11,"fmt","","",3,null],[8,"Part","jsonwebtoken","A part of the JWT: header and claims specifically\nAllows converting from/to struct with base64",null,null],[16,"Encoded","","",4,null],[10,"from_base64","","",4,{"inputs":[{"name":"b"}],"output":{"name":"result"}}],[10,"to_base64","","",4,null],[11,"encode","","",2,null],[11,"decode","","",2,{"inputs":[{"name":"__d"}],"output":{"name":"result"}}],[11,"clone","","",2,null],[11,"eq","","",2,null],[11,"fmt","","",2,null],[11,"to_json","","",2,null],[11,"decode","","",0,{"inputs":[{"name":"__d"}],"output":{"name":"result"}}],[11,"eq","","",0,null],[11,"ne","","",0,null],[11,"fmt","","",0,null],[11,"new","","",0,{"inputs":[{"name":"algorithm"}],"output":{"name":"header"}}],[11,"default","","",0,{"inputs":[],"output":{"name":"header"}}],[11,"encode","","",0,null],[11,"to_json","","",0,null],[11,"fmt","","",1,null]],"paths":[[3,"Header"],[3,"TokenData"],[4,"Algorithm"],[4,"Error"],[8,"Part"]]}; initSearch(searchIndex);