pub struct OuterLayer {
pub raw_contents: Vec<u8>,
pub auth_type: Option<String>,
pub ephemeral_key: Option<String>,
pub clients: IndexMap<String, AuthorizedClient>,
pub encrypted: Option<String>,
}Fields§
§raw_contents: Vec<u8>§auth_type: Option<String>§ephemeral_key: Option<String>§clients: IndexMap<String, AuthorizedClient>§encrypted: Option<String>Implementations§
Source§impl OuterLayer
impl OuterLayer
pub fn parse(content: &[u8], validate: bool) -> Result<Self>
pub fn content( attributes: &Attributes, exclude: &[&str], inner_layer: &InnerLayer, revision_counter: u64, authorized_clients: Option<&[AuthorizedClient]>, secrets: &LayerSecrets<'_>, ) -> Result<Vec<u8>>
Trait Implementations§
Source§impl Clone for OuterLayer
impl Clone for OuterLayer
Source§impl Debug for OuterLayer
impl Debug for OuterLayer
Source§impl PartialEq for OuterLayer
impl PartialEq for OuterLayer
Source§impl Serialize for OuterLayer
impl Serialize for OuterLayer
impl StructuralPartialEq for OuterLayer
Auto Trait Implementations§
impl Freeze for OuterLayer
impl RefUnwindSafe for OuterLayer
impl Send for OuterLayer
impl Sync for OuterLayer
impl Unpin for OuterLayer
impl UnsafeUnpin for OuterLayer
impl UnwindSafe for OuterLayer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more