pub struct ExecutableComponentPayload {
pub kind: ExecutableComponentKind,
pub bytes: Vec<u8>,
}Fields§
§kind: ExecutableComponentKind§bytes: Vec<u8>Implementations§
Source§impl ExecutableComponentPayload
impl ExecutableComponentPayload
pub fn new( kind: ExecutableComponentKind, bytes: Vec<u8>, ) -> Result<Self, ContractError>
Trait Implementations§
Source§impl Clone for ExecutableComponentPayload
impl Clone for ExecutableComponentPayload
Source§fn clone(&self) -> ExecutableComponentPayload
fn clone(&self) -> ExecutableComponentPayload
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 ExecutableComponentPayload
impl Debug for ExecutableComponentPayload
Source§impl<'de> Deserialize<'de> for ExecutableComponentPayload
impl<'de> Deserialize<'de> for ExecutableComponentPayload
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 ExecutableComponentPayload
impl StructuralPartialEq for ExecutableComponentPayload
Auto Trait Implementations§
impl Freeze for ExecutableComponentPayload
impl RefUnwindSafe for ExecutableComponentPayload
impl Send for ExecutableComponentPayload
impl Sync for ExecutableComponentPayload
impl Unpin for ExecutableComponentPayload
impl UnsafeUnpin for ExecutableComponentPayload
impl UnwindSafe for ExecutableComponentPayload
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