Type Alias hedera::FreezeTransaction

source ·
pub type FreezeTransaction = Transaction<FreezeTransactionData>;
Expand description

Sets the freezing period in which the platform will stop creating events and accepting transactions.

This is used before safely shut down the platform for maintenance.

Aliased Type§

struct FreezeTransaction { /* private fields */ }

Implementations§

source§

impl FreezeTransaction

source

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

Returns the start time.

source

pub fn start_time(&mut self, time: OffsetDateTime) -> &mut Self

Sets the start time.

source

pub fn get_freeze_type(&self) -> FreezeType

Returns the freeze type.

source

pub fn freeze_type(&mut self, ty: FreezeType) -> &mut Self

Sets the freeze type.

source

pub fn get_file_id(&self) -> Option<FileId>

Returns the file ID.

source

pub fn file_id(&mut self, id: FileId) -> &mut Self

Sets the file ID.

source

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

Returns the file hash.

source

pub fn file_hash(&mut self, hash: Vec<u8>) -> &mut Self

Sets the file hash.