pub struct ProfileGetBodyResult {
pub store_id: String,
pub root: String,
pub body_b64: Option<String>,
pub body_bytes: u64,
}Expand description
control.profile.getBody — the body this node holds at a store id + root, if it holds one.
body_b64: None MUST mean “this node was consulted and holds no body at that root”. It NEVER
means the body could not be read: a read that failed MUST return a catalogued error instead. A
caller that cannot tell those apart shows an empty profile for a profile that exists.
Fields§
§store_id: StringThe canonical store id the read was scoped to.
root: StringThe root the read was scoped to — the SAME root the caller asked for, so a body for another root can never arrive here unnoticed.
body_b64: Option<String>The body, standard base64 (padded) of its DPB serialization; None when this node holds
no body at that root.
body_bytes: u64The DECODED body length in bytes; 0 when no body is held.
Trait Implementations§
Source§impl Clone for ProfileGetBodyResult
impl Clone for ProfileGetBodyResult
Source§fn clone(&self) -> ProfileGetBodyResult
fn clone(&self) -> ProfileGetBodyResult
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 ProfileGetBodyResult
impl Debug for ProfileGetBodyResult
Source§impl<'de> Deserialize<'de> for ProfileGetBodyResult
impl<'de> Deserialize<'de> for ProfileGetBodyResult
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 ProfileGetBodyResult
Source§impl PartialEq for ProfileGetBodyResult
impl PartialEq for ProfileGetBodyResult
Source§impl Serialize for ProfileGetBodyResult
impl Serialize for ProfileGetBodyResult
impl StructuralPartialEq for ProfileGetBodyResult
Auto Trait Implementations§
impl Freeze for ProfileGetBodyResult
impl RefUnwindSafe for ProfileGetBodyResult
impl Send for ProfileGetBodyResult
impl Sync for ProfileGetBodyResult
impl Unpin for ProfileGetBodyResult
impl UnsafeUnpin for ProfileGetBodyResult
impl UnwindSafe for ProfileGetBodyResult
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