[−][src]Struct asset_transfer_rs::AssetTransferQuery
Structure for the AssetContract, on which implemenation transaction functions will be added
Implementations
impl AssetTransferQuery
[src]
The contract implementation
Should be marked with the macro #[contrant_impl]
pub fn new() -> AssetTransferQuery
[src]
pub fn create_asset(
&self,
id: String,
color: String,
size: i32,
owner: String,
appraised_value: i32
) -> Result<(), ContractError>
[src]
&self,
id: String,
color: String,
size: i32,
owner: String,
appraised_value: i32
) -> Result<(), ContractError>
CreateAsset issues a new asset to the world state with given details.
pub fn read_asset(&self, id: String) -> Result<Asset, ContractError>
[src]
pub fn update_asset(
&self,
id: String,
color: String,
size: i32,
owner: String,
appraised_value: i32
) -> Result<(), ContractError>
[src]
&self,
id: String,
color: String,
size: i32,
owner: String,
appraised_value: i32
) -> Result<(), ContractError>
pub fn delete_asset(&self, id: String) -> Result<(), ContractError>
[src]
pub fn asset_exists(&self, id: String) -> Result<bool, ContractError>
[src]
pub fn transfer_asset(
&self,
id: String,
new_owner: String
) -> Result<(), ContractError>
[src]
&self,
id: String,
new_owner: String
) -> Result<(), ContractError>
pub fn transfer_asset_by_color(
&self,
color: String,
new_owner: String
) -> Result<(), ContractError>
[src]
&self,
color: String,
new_owner: String
) -> Result<(), ContractError>
Trait Implementations
impl Contract for AssetTransferQuery
[src]
Implementation of the contract trait for the AssetContract There are default implementation methods, but can be modified if you wish
Recommended that the name() function is always modified Name of the contract
fn name(&self) -> String
[src]
fn get_verified_client_org(&self) -> Result<String, ContractError>
[src]
impl Metadata for AssetTransferQuery
[src]
fn get_fn_metadata(&self) -> Vec<TransactionFn>
[src]
impl Routing for AssetTransferQuery
[src]
fn route3(
&self,
tx_fn: String,
args: Vec<WireBuffer>,
return_wb: TypeSchema
) -> Result<WireBuffer, ContractError>
[src]
&self,
tx_fn: String,
args: Vec<WireBuffer>,
return_wb: TypeSchema
) -> Result<WireBuffer, ContractError>
Auto Trait Implementations
impl RefUnwindSafe for AssetTransferQuery
impl Send for AssetTransferQuery
impl Sync for AssetTransferQuery
impl Unpin for AssetTransferQuery
impl UnwindSafe for AssetTransferQuery
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,