pub struct CommentRequestData {
pub v: u32,
pub adata: CommentAdata,
pub ct: String,
pub pasteid: String,
pub parentid: String,
}Expand description
Deserialized form of the JSON comment data that is sent to the web API of PrivateBin The JSON data takes the below form:
{
"v": 2, // Version (recommended: 2)
"adata": [ // JSON associated data that is used in the paste encryption to authenticate any sent copies of the associated data
string, // Base64 encoded Cipher Initialization Vector (IV)
string, // Base64 encoded Key Derivation Function (KDF) salt
number, // KDF iterations (recommended: 100000)
number, // KDF keysize (recommended: 256)
number, // Cipher tag size in bits (recommended: 128)
string, // Cipher algorithm (recommended: "aes")
string, // Cipher mode (recommended: "gcm")
string, // Compression type (recommended: "zlib")
],
"ct": string, // Base64 encoded Cipher Text,
"pasteid": string, // ID of the paste to comment on
"parentid": string, // ID of the paste or comment to comment on
}[Source] (https://github.com/PrivateBin/PrivateBin/wiki/API#as-of-version-13)
Fields§
§v: u32§adata: CommentAdata§ct: String§pasteid: String§parentid: StringTrait Implementations§
Source§impl Debug for CommentRequestData
impl Debug for CommentRequestData
Source§impl<'de> Deserialize<'de> for CommentRequestData
impl<'de> Deserialize<'de> for CommentRequestData
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CommentRequestData
impl RefUnwindSafe for CommentRequestData
impl Send for CommentRequestData
impl Sync for CommentRequestData
impl Unpin for CommentRequestData
impl UnsafeUnpin for CommentRequestData
impl UnwindSafe for CommentRequestData
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