// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // Copyright by contributors to this project. // SPDX-License-Identifier: (Apache-2.0 OR MIT)
use core::{
convert::Infallible,
fmt::{self, Debug},
};
use alloc::vec::Vec; use mls_rs_codec::{MlsDecode, MlsEncode, MlsSize};
#[derive(Clone, PartialEq, Eq, Hash, PartialOrd, Ord, MlsSize, MlsEncode, MlsDecode)] #[cfg_attr(feature = "arbitrary", derive(arbitrary::Arbitrary))] // #[cfg_attr( // all(feature = "ffi", not(test)), // safer_ffi_gen::ffi_type(clone, opaque) // )] #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] /// Bare assertion of an identity without any additional information. /// /// The format of the encoded identity is defined by the application. /// /// /// # Warning /// /// Basic credentials are inherently insecure since they can not be /// properly validated. It is not recommended to use [`BasicCredential`] /// in production applications. pubstruct BasicCredential { /// Underlying identifier as raw bytes. #[mls_codec(with = "mls_rs_codec::byte_vec")] #[cfg_attr(feature = "serde", serde(with = "crate::vec_serde"))] pub identifier: Vec<u8>,
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.