pub type SystemDeleteTransaction = Transaction<SystemDeleteTransactionData>;
Expand description
Delete a file or smart contract - can only be done by a Hiero admin.
Aliased Type§
pub struct SystemDeleteTransaction { /* private fields */ }
Implementations§
Source§impl SystemDeleteTransaction
impl SystemDeleteTransaction
Sourcepub fn get_contract_id(&self) -> Option<ContractId>
pub fn get_contract_id(&self) -> Option<ContractId>
Returns the contract ID which should be deleted.
Sourcepub fn contract_id(&mut self, id: impl Into<ContractId>) -> &mut Self
pub fn contract_id(&mut self, id: impl Into<ContractId>) -> &mut Self
Sets the contract ID which should be deleted.
Sourcepub fn get_file_id(&self) -> Option<FileId>
pub fn get_file_id(&self) -> Option<FileId>
Returns the file ID which should be deleted.
Sourcepub fn file_id(&mut self, id: impl Into<FileId>) -> &mut Self
pub fn file_id(&mut self, id: impl Into<FileId>) -> &mut Self
Sets the file ID which should be deleted.
Sourcepub fn get_expiration_time(&self) -> Option<OffsetDateTime>
pub fn get_expiration_time(&self) -> Option<OffsetDateTime>
Returns the timestamp at which the “deleted” entity should truly be permanently deleted.
Sourcepub fn expiration_time(&mut self, expiration_time: OffsetDateTime) -> &mut Self
pub fn expiration_time(&mut self, expiration_time: OffsetDateTime) -> &mut Self
Sets the timestamp at which the “deleted” file should truly be permanently deleted.