Type Alias hedera::FileCreateTransaction

source ·
pub type FileCreateTransaction = Transaction<FileCreateTransactionData>;
Expand description

Create a new file, containing the given contents.

Aliased Type§

struct FileCreateTransaction { /* private fields */ }

Implementations§

source§

impl FileCreateTransaction

source

pub fn get_file_memo(&self) -> &str

Returns the memo to be associated with the file.

source

pub fn file_memo(&mut self, memo: impl Into<String>) -> &mut Self

Sets the memo associated with the file.

source

pub fn get_contents(&self) -> Option<&[u8]>

Returns the bytes that are to be the contents of the file.

source

pub fn contents(&mut self, contents: impl Into<Vec<u8>>) -> &mut Self

Sets the bytes that are to be the contents of the file.

source

pub fn get_keys(&self) -> Option<&KeyList>

Returns the keys for this file.

source

pub fn keys<K: Into<Key>>( &mut self, keys: impl IntoIterator<Item = K> ) -> &mut Self

Sets the keys for this file.

All keys at the top level of a key list must sign to create or modify the file. Any one of the keys at the top level key list can sign to delete the file.

source

pub fn get_auto_renew_period(&self) -> Option<Duration>

Returns the auto renew period for this file.

§Network Support

Please note that this not supported on any hedera network at this time.

source

pub fn auto_renew_period(&mut self, duration: Duration) -> &mut Self

Sets the auto renew period for this file.

§Network Support

Please note that this not supported on any hedera network at this time.

source

pub fn get_auto_renew_account_id(&self) -> Option<AccountId>

Returns the account to be used at the file’s expiration time to extend the life of the file.

§Network Support

Please note that this not supported on any hedera network at this time.

source

pub fn auto_renew_account_id(&mut self, id: AccountId) -> &mut Self

Sets the account to be used at the files’s expiration time to extend the life of the file.

§Network Support

Please note that this not supported on any hedera network at this time.

source

pub fn get_expiration_time(&self) -> Option<OffsetDateTime>

Returns the time at which this file should expire.

source

pub fn expiration_time(&mut self, at: OffsetDateTime) -> &mut Self

Sets the time at which this file should expire.