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
impl TopicUpdateTransaction
sourcepub fn get_topic_id(&self) -> Option<TopicId>
pub fn get_topic_id(&self) -> Option<TopicId>
Returns the topic ID which is being updated.
sourcepub fn topic_id(&mut self, id: impl Into<TopicId>) -> &mut Self
pub fn topic_id(&mut self, id: impl Into<TopicId>) -> &mut Self
Sets the topic ID which is being updated.
sourcepub fn get_expiration_time(&self) -> Option<OffsetDateTime>
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).
sourcepub fn expiration_time(&mut self, at: OffsetDateTime) -> &mut Self
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).
sourcepub fn get_topic_memo(&self) -> Option<&str>
pub fn get_topic_memo(&self) -> Option<&str>
Returns the new topic memo for the topic.
sourcepub fn topic_memo(&mut self, memo: impl Into<String>) -> &mut Self
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.
sourcepub fn get_admin_key(&self) -> Option<&Key>
pub fn get_admin_key(&self) -> Option<&Key>
Returns the access control for TopicUpdateTransaction
and TopicDeleteTransaction
.
sourcepub fn admin_key(&mut self, key: impl Into<Key>) -> &mut Self
pub fn admin_key(&mut self, key: impl Into<Key>) -> &mut Self
Sets the access control for TopicUpdateTransaction
and TopicDeleteTransaction
.
sourcepub fn clear_admin_key(&mut self) -> &mut Self
pub fn clear_admin_key(&mut self) -> &mut Self
Clears the access control for TopicUpdateTransaction
and TopicDeleteTransaction
.
sourcepub fn get_submit_key(&self) -> Option<&Key>
pub fn get_submit_key(&self) -> Option<&Key>
Returns the access control for TopicMessageSubmitTransaction
.
sourcepub fn submit_key(&mut self, key: impl Into<Key>) -> &mut Self
pub fn submit_key(&mut self, key: impl Into<Key>) -> &mut Self
Sets the access control for TopicMessageSubmitTransaction
.
sourcepub fn clear_submit_key(&mut self) -> &mut Self
pub fn clear_submit_key(&mut self) -> &mut Self
Clears the access control for TopicUpdateTransaction
and TopicDeleteTransaction
.
sourcepub fn get_auto_renew_period(&self) -> Option<Duration>
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.
sourcepub fn auto_renew_period(&mut self, period: Duration) -> &mut Self
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.
sourcepub fn get_auto_renew_account_id(&self) -> Option<AccountId>
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.
sourcepub fn auto_renew_account_id(&mut self, id: AccountId) -> &mut Self
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.
sourcepub fn clear_auto_renew_account_id(&mut self) -> &mut Self
pub fn clear_auto_renew_account_id(&mut self) -> &mut Self
Clear the auto renew account ID for this topic.