pub struct TokenCreateTransaction { /* private fields */ }
Implementations§
Source§impl TokenCreateTransaction
impl TokenCreateTransaction
pub fn schedule(&mut self) -> Result<ScheduleCreateTransaction, HederaError>
Source§impl TokenCreateTransaction
impl TokenCreateTransaction
pub async fn add_signature( &mut self, public_key: PublicKey, signature: Signature, ) -> Result<&mut Self, HederaError>
pub fn signatures( &self, ) -> Result<HashMap<AccountId, HashMap<PublicKey, Vec<u8>>>, HederaError>
pub fn sign( &mut self, private_key: &PrivateKey, ) -> Result<&mut Self, HederaError>
pub fn sign_with<F: Fn(&Vec<u8>) -> Signature>( &mut self, public_key: &PublicKey, signer: F, ) -> Result<&mut Self, HederaError>
pub async fn sign_with_operator( &mut self, client: &Client, ) -> Result<&mut Self, HederaError>
pub fn is_frozen(&self) -> bool
pub async fn freeze(&mut self) -> Result<&mut Self, HederaError>
pub fn to_bytes(&mut self) -> Result<Vec<u8>, HederaError>
pub fn transaction_hash(&mut self) -> Result<Vec<u8>, HederaError>
pub fn max_transaction_fee(&self) -> Hbar
pub fn set_max_transaction_fee( &mut self, fee: Hbar, ) -> Result<&mut Self, HederaError>
pub fn transaction_memo(&self) -> String
pub fn set_transaction_memo( &mut self, memo: String, ) -> Result<&mut Self, HederaError>
pub fn transaction_valid_duration(&self) -> Option<Duration>
pub fn set_transaction_valid_duration( &mut self, duration: Option<Duration>, ) -> Result<&mut Self, HederaError>
pub fn transaction_id(&self) -> Result<TransactionId, HederaError>
pub fn set_transaction_id( &mut self, transaction_id: TransactionId, ) -> Result<&mut Self, HederaError>
pub fn node_account_ids(&self) -> Vec<AccountId>
pub fn set_node_account_ids( &mut self, node_ids: Vec<AccountId>, ) -> Result<&mut Self, HederaError>
pub fn set_max_retry(&mut self, max_retry: u8) -> Result<&mut Self, HederaError>
pub fn set_min_backoff( &mut self, backoff: u64, ) -> Result<&mut Self, HederaError>
pub fn set_max_backoff( &mut self, backoff: u64, ) -> Result<&mut Self, HederaError>
Source§impl TokenCreateTransaction
impl TokenCreateTransaction
pub async fn freeze_with( &mut self, client: Option<&Client>, ) -> Result<&mut Self, HederaError>
pub async fn execute_async( &mut self, client: &Client, ) -> Result<IntermediateResponse, HederaError>
Source§impl TokenCreateTransaction
impl TokenCreateTransaction
pub async fn execute( &mut self, client: &Client, ) -> Result<TransactionResponse, HederaError>
Source§impl TokenCreateTransaction
impl TokenCreateTransaction
pub fn new() -> TokenCreateTransaction
pub fn name(&self) -> Result<String, HederaError>
pub fn set_name(&mut self, name: String) -> Result<&mut Self, HederaError>
pub fn symbol(&self) -> Result<String, HederaError>
pub fn set_symbol(&mut self, symbol: String) -> Result<&mut Self, HederaError>
pub fn decimals(&self) -> Result<u32, HederaError>
pub fn set_decimals(&mut self, decimals: u32) -> Result<&mut Self, HederaError>
pub fn initial_supply(&self) -> Result<u64, HederaError>
pub fn set_initial_supply( &mut self, initial_supply: u64, ) -> Result<&mut Self, HederaError>
pub fn treasury(&self) -> Result<AccountId, HederaError>
pub fn set_treasury( &mut self, treasury: AccountId, ) -> Result<&mut Self, HederaError>
pub fn admin_key(&self) -> Result<Key, HederaError>
pub fn set_admin_key( &mut self, admin_key: Key, ) -> Result<&mut Self, HederaError>
pub fn kyc_key(&self) -> Result<Key, HederaError>
pub fn set_kyc_key(&mut self, kyc_key: Key) -> Result<&mut Self, HederaError>
pub fn freeze_key(&self) -> Result<Key, HederaError>
pub fn set_freeze_key( &mut self, freeze_key: Key, ) -> Result<&mut Self, HederaError>
pub fn wipe_key(&self) -> Result<Key, HederaError>
pub fn set_wipe_key(&mut self, wipe_key: Key) -> Result<&mut Self, HederaError>
pub fn supply_key(&self) -> Result<Key, HederaError>
pub fn set_supply_key( &mut self, supply_key: Key, ) -> Result<&mut Self, HederaError>
pub fn freeze_default(&self) -> Result<bool, HederaError>
pub fn set_freeze_default( &mut self, freeze_default: bool, ) -> Result<&mut Self, HederaError>
pub fn auto_renew_period(&self) -> Result<Duration, HederaError>
pub fn set_auto_renew_period( &mut self, auto_renew_period: Duration, ) -> Result<&mut Self, HederaError>
pub fn expiration_time(&self) -> Result<DateTime<Utc>, HederaError>
pub fn set_expiration_time( &mut self, expiration_time: DateTime<Utc>, ) -> Result<&mut Self, HederaError>
pub fn auto_renew_account(&self) -> Result<AccountId, HederaError>
pub fn set_auto_renew_account( &mut self, auto_renew_account: AccountId, ) -> Result<&mut Self, HederaError>
pub fn memo(&self) -> Result<String, HederaError>
pub fn set_memo(&mut self, memo: String) -> Result<&mut Self, HederaError>
pub fn token_type(&self) -> Result<TokenType, HederaError>
pub fn set_token_type( &mut self, token_type: TokenType, ) -> Result<&mut Self, HederaError>
pub fn supply_type(&self) -> Result<TokenSupplyType, HederaError>
pub fn set_supply_type( &mut self, supply_type: TokenSupplyType, ) -> Result<&mut Self, HederaError>
pub fn max_supply(&self) -> Result<i64, HederaError>
pub fn set_max_supply( &mut self, max_supply: i64, ) -> Result<&mut Self, HederaError>
pub fn fee_schedule_key(&self) -> Result<Key, HederaError>
pub fn set_fee_schedule_key( &mut self, fee_schedule_key: Key, ) -> Result<&mut Self, HederaError>
pub fn custom_fees(&self) -> Result<Vec<CustomFee>, HederaError>
pub fn set_custom_fees( &mut self, custom_fees: Vec<CustomFee>, ) -> Result<&mut Self, HederaError>
pub fn pause_key(&self) -> Result<Key, HederaError>
pub fn set_pause_key( &mut self, pause_key: Key, ) -> Result<&mut Self, HederaError>
Trait Implementations§
Source§impl Clone for TokenCreateTransaction
impl Clone for TokenCreateTransaction
Source§fn clone(&self) -> TokenCreateTransaction
fn clone(&self) -> TokenCreateTransaction
Returns a duplicate of the value. Read more
1.0.0 · 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 TokenCreateTransaction
impl Debug for TokenCreateTransaction
Source§impl Default for TokenCreateTransaction
impl Default for TokenCreateTransaction
Source§impl Display for TokenCreateTransaction
impl Display for TokenCreateTransaction
Source§impl PartialEq for TokenCreateTransaction
impl PartialEq for TokenCreateTransaction
impl StructuralPartialEq for TokenCreateTransaction
Auto Trait Implementations§
impl Freeze for TokenCreateTransaction
impl RefUnwindSafe for TokenCreateTransaction
impl Send for TokenCreateTransaction
impl Sync for TokenCreateTransaction
impl Unpin for TokenCreateTransaction
impl UnwindSafe for TokenCreateTransaction
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request