pub struct ContentBlock {
pub hash: String,
pub time: usize,
pub payload: Option<PayloadBlock>,
pub like: Option<LikeBlock>,
pub signature: Option<SignatureBlock>,
pub backs: Vec<String>,
}
Expand description
Representation of freechains content block response. It is created from content.
Fields§
§hash: String
Content hash.
time: usize
Content instant of creation. Milliseconds since std::time::UNIX_EPOCH.
payload: Option<PayloadBlock>
Content payload information.
like: Option<LikeBlock>
If content is a like, like information is stored here.
signature: Option<SignatureBlock>
Content signature information.
backs: Vec<String>
Blocks which points to this content block.
Trait Implementations§
Source§impl Debug for ContentBlock
impl Debug for ContentBlock
Source§impl<'de> Deserialize<'de> for ContentBlock
impl<'de> Deserialize<'de> for ContentBlock
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
Source§impl Ord for ContentBlock
impl Ord for ContentBlock
Source§fn cmp(&self, other: &ContentBlock) -> Ordering
fn cmp(&self, other: &ContentBlock) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ContentBlock
impl PartialEq for ContentBlock
Source§impl PartialOrd for ContentBlock
impl PartialOrd for ContentBlock
Source§impl Serialize for ContentBlock
impl Serialize for ContentBlock
impl Eq for ContentBlock
impl StructuralPartialEq for ContentBlock
Auto Trait Implementations§
impl Freeze for ContentBlock
impl RefUnwindSafe for ContentBlock
impl Send for ContentBlock
impl Sync for ContentBlock
impl Unpin for ContentBlock
impl UnwindSafe for ContentBlock
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