FileAppendTransaction

Type Alias FileAppendTransaction 

Source
pub type FileAppendTransaction = Transaction<FileAppendTransactionData>;
Expand description

Append the given contents to the end of the specified file.

Aliased Type§

pub struct FileAppendTransaction { /* private fields */ }

Implementations§

Source§

impl FileAppendTransaction

Source

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

Returns the file to which the bytes will be appended.

Source

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

Sets the file to which the bytes will be appended.

Source

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

Retuns the bytes that will be appended to the end of the specified file.

Source

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

Sets the bytes that will be appended to the end of the specified file.