Struct bundy::Data [−][src]
pub struct Data { /* fields omitted */ }
Expand description
A data package. This contains the algorithm, signature (in base64) and data (base64 json).
Implementations
impl Data
[src]
impl Data
[src]pub unsafe fn parse_without_verification<T: DeserializeOwned>(
input: &str
) -> Result<T, BundyError>
[src]
pub unsafe fn parse_without_verification<T: DeserializeOwned>(
input: &str
) -> Result<T, BundyError>
[src]This allows a client to parse the content of a Data
without the need to verify it’s
authenticity i.e. in the case an HMAC is used.
Safety
This function is declared unsafe, as it allows a Data
to be deserilised bypassing
verification. You MUST understand the implications of using this function, and limit
it to situations where verification is NOT required. Incorrect use of this function
MAY cause security vulnerabilities in your application.
Trait Implementations
impl<'de> Deserialize<'de> for Data
[src]
impl<'de> Deserialize<'de> for Data
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Data
impl Send for Data
impl Sync for Data
impl Unpin for Data
impl UnwindSafe for Data
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,