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
impl FreezeTransaction
sourcepub fn get_start_time(&self) -> Option<OffsetDateTime>
pub fn get_start_time(&self) -> Option<OffsetDateTime>
Returns the start time.
sourcepub fn start_time(&mut self, time: OffsetDateTime) -> &mut Self
pub fn start_time(&mut self, time: OffsetDateTime) -> &mut Self
Sets the start time.
sourcepub fn get_freeze_type(&self) -> FreezeType
pub fn get_freeze_type(&self) -> FreezeType
Returns the freeze type.
sourcepub fn freeze_type(&mut self, ty: FreezeType) -> &mut Self
pub fn freeze_type(&mut self, ty: FreezeType) -> &mut Self
Sets the freeze type.
sourcepub fn get_file_id(&self) -> Option<FileId>
pub fn get_file_id(&self) -> Option<FileId>
Returns the file ID.
sourcepub fn get_file_hash(&self) -> Option<&[u8]>
pub fn get_file_hash(&self) -> Option<&[u8]>
Returns the file hash.