Struct cyfs_base::ContractBodyContent
source · [−]pub struct ContractBodyContent<T> {
pub data: T,
}
Fields
data: T
Trait Implementations
sourceimpl<T> BodyContent for ContractBodyContent<T>
impl<T> BodyContent for ContractBodyContent<T>
sourceimpl<T: Clone> Clone for ContractBodyContent<T>
impl<T: Clone> Clone for ContractBodyContent<T>
sourcefn clone(&self) -> ContractBodyContent<T>
fn clone(&self) -> ContractBodyContent<T>
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<T: Debug> Debug for ContractBodyContent<T>
impl<T: Debug> Debug for ContractBodyContent<T>
sourceimpl ObjectFormat for ContractBodyContent<ContractData>
impl ObjectFormat for ContractBodyContent<ContractData>
fn format_json(&self) -> Value
sourceimpl<'de> RawDecode<'de> for ContractBodyContent<ContractData>
impl<'de> RawDecode<'de> for ContractBodyContent<ContractData>
fn raw_decode(buf: &'de [u8]) -> BuckyResult<(Self, &'de [u8])>
fn raw_decode_with_option(
buf: &'de [u8],
_opt: &RawDecodeOption
) -> BuckyResult<(Self, &'de [u8])>
sourceimpl RawEncode for ContractBodyContent<ContractData>
impl RawEncode for ContractBodyContent<ContractData>
fn raw_measure(&self, purpose: &Option<RawEncodePurpose>) -> BuckyResult<usize>
fn raw_encode<'a>(
&self,
buf: &'a mut [u8],
purpose: &Option<RawEncodePurpose>
) -> BuckyResult<&'a mut [u8]>
fn raw_tail_encode<'a>(
&self,
buf: &'a mut [u8],
purpose: &Option<RawEncodePurpose>
) -> BuckyResult<&'a [u8]>
fn raw_encode_to_buffer(&self) -> BuckyResult<Vec<u8>>
fn raw_hash_value(&self) -> BuckyResult<HashValue>
fn hash_buf(&self, encoded_buf: &[u8]) -> HashValue
fn raw_hash_encode(&self) -> BuckyResult<Vec<u8>>
Auto Trait Implementations
impl<T> RefUnwindSafe for ContractBodyContent<T>where
T: RefUnwindSafe,
impl<T> Send for ContractBodyContent<T>where
T: Send,
impl<T> Sync for ContractBodyContent<T>where
T: Sync,
impl<T> Unpin for ContractBodyContent<T>where
T: Unpin,
impl<T> UnwindSafe for ContractBodyContent<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more