pub struct ProfilePutBodyResult {
pub stored: bool,
pub store_id: String,
pub root: String,
pub body_bytes: u64,
}Expand description
control.profile.putBody — the acknowledgement that the node accepted and persisted a body.
Reaching this result at all means the node RESOLVED the root on chain and found it confirmed and
matching the supplied bytes. A refusal is an error, never a success carrying stored: false —
a caller that has to inspect a boolean to learn whether its profile published is a caller that
will forget to.
Fields§
§stored: boolAlways true: the body is persisted and this node will serve it to peers.
store_id: StringThe canonical store id the body was filed under (trimmed + lower-cased).
root: StringThe CONFIRMED chain root the node verified the body against — echoed so a caller can pin which root its bytes now stand behind.
body_bytes: u64The DECODED body length in bytes, never above
MAX_BODY_BYTES.
Trait Implementations§
Source§impl Clone for ProfilePutBodyResult
impl Clone for ProfilePutBodyResult
Source§fn clone(&self) -> ProfilePutBodyResult
fn clone(&self) -> ProfilePutBodyResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProfilePutBodyResult
impl Debug for ProfilePutBodyResult
Source§impl<'de> Deserialize<'de> for ProfilePutBodyResult
impl<'de> Deserialize<'de> for ProfilePutBodyResult
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
impl Eq for ProfilePutBodyResult
Source§impl PartialEq for ProfilePutBodyResult
impl PartialEq for ProfilePutBodyResult
Source§impl Serialize for ProfilePutBodyResult
impl Serialize for ProfilePutBodyResult
impl StructuralPartialEq for ProfilePutBodyResult
Auto Trait Implementations§
impl Freeze for ProfilePutBodyResult
impl RefUnwindSafe for ProfilePutBodyResult
impl Send for ProfilePutBodyResult
impl Sync for ProfilePutBodyResult
impl Unpin for ProfilePutBodyResult
impl UnsafeUnpin for ProfilePutBodyResult
impl UnwindSafe for ProfilePutBodyResult
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