Type Alias hedera::TopicUpdateTransaction

source ·
pub type TopicUpdateTransaction = Transaction<TopicUpdateTransactionData>;
Expand description

Change properties for the given topic.

Any null field is ignored (left unchanged).

Aliased Type§

struct TopicUpdateTransaction { /* private fields */ }

Implementations§

source§

impl TopicUpdateTransaction

source

pub fn get_topic_id(&self) -> Option<TopicId>

Returns the topic ID which is being updated.

source

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

Sets the topic ID which is being updated.

source

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

Returns the new expiration time to extend to (ignored if equal to or before the current one).

source

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

Sets the new expiration time to extend to (ignored if equal to or before the current one).

source

pub fn get_topic_memo(&self) -> Option<&str>

Returns the new topic memo for the topic.

source

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

Sets the short publicly visible memo about the topic.

No guarantee of uniqueness.

source

pub fn get_admin_key(&self) -> Option<&Key>

Returns the access control for TopicUpdateTransaction and TopicDeleteTransaction.

source

pub fn admin_key(&mut self, key: impl Into<Key>) -> &mut Self

Sets the access control for TopicUpdateTransaction and TopicDeleteTransaction.

source

pub fn clear_admin_key(&mut self) -> &mut Self

Clears the access control for TopicUpdateTransaction and TopicDeleteTransaction.

source

pub fn get_submit_key(&self) -> Option<&Key>

Returns the access control for TopicMessageSubmitTransaction.

source

pub fn submit_key(&mut self, key: impl Into<Key>) -> &mut Self

Sets the access control for TopicMessageSubmitTransaction.

source

pub fn clear_submit_key(&mut self) -> &mut Self

Clears the access control for TopicUpdateTransaction and TopicDeleteTransaction.

source

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

Returns the initial lifetime of the topic and the amount of time to attempt to extend the topic’s lifetime by automatically at the topic’s expiration time.

source

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

Sets the initial lifetime of the topic and the amount of time to attempt to extend the topic’s lifetime by automatically at the topic’s expiration time.

source

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

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

source

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

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

source

pub fn clear_auto_renew_account_id(&mut self) -> &mut Self

Clear the auto renew account ID for this topic.