Struct biscuit_auth::ThirdPartyRequest
source · pub struct ThirdPartyRequest { /* private fields */ }Expand description
Third party block request
Implementations§
source§impl ThirdPartyRequest
impl ThirdPartyRequest
pub fn serialize(&self) -> Result<Vec<u8>, Token>
pub fn serialize_base64(&self) -> Result<String, Token>
pub fn deserialize(slice: &[u8]) -> Result<Self, Token>
pub fn deserialize_base64<T>(slice: T) -> Result<Self, Token>where
T: AsRef<[u8]>,
sourcepub fn create_block(
self,
private_key: &PrivateKey,
block_builder: BlockBuilder
) -> Result<ThirdPartyBlock, Token>
pub fn create_block(
self,
private_key: &PrivateKey,
block_builder: BlockBuilder
) -> Result<ThirdPartyBlock, Token>
Creates a ThirdPartyBlock signed with the third party service’s PrivateKey