pub type TopicUpdateTransaction = Transaction<TopicUpdateTransactionData>;
Expand description
Change properties for the given topic.
Any null field is ignored (left unchanged).
Aliased Type§
pub 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.
Sourcepub fn fee_schedule_key(&mut self, key: impl Into<Key>) -> &mut Self
pub fn fee_schedule_key(&mut self, key: impl Into<Key>) -> &mut Self
The key that can be used to update the fee schedule for the topic.
Sourcepub fn get_fee_schedule_key(&self) -> Option<&Key>
pub fn get_fee_schedule_key(&self) -> Option<&Key>
The key that can be used to update the fee schedule for the topic.
Sourcepub fn fee_exempt_keys(&mut self, keys: Vec<Key>) -> &mut Self
pub fn fee_exempt_keys(&mut self, keys: Vec<Key>) -> &mut Self
The keys that can be used to update the fee schedule for the topic.
Sourcepub fn get_fee_exempt_keys(&self) -> &Vec<Key>
pub fn get_fee_exempt_keys(&self) -> &Vec<Key>
The keys that can be used to update the fee schedule for the topic.
Sourcepub fn clear_fee_exempt_keys(&mut self) -> &mut Self
pub fn clear_fee_exempt_keys(&mut self) -> &mut Self
Clears the keys that can be used to update the fee schedule for the topic.
Sourcepub fn add_fee_exempt_key(&mut self, key: Key) -> &mut Self
pub fn add_fee_exempt_key(&mut self, key: Key) -> &mut Self
Adds a key to the list of keys that can be used to update the fee schedule for the topic.
Sourcepub fn custom_fees(&mut self, fees: Vec<CustomFixedFee>) -> &mut Self
pub fn custom_fees(&mut self, fees: Vec<CustomFixedFee>) -> &mut Self
The custom fees to be assessed during a message submission to this topic.
Sourcepub fn clear_custom_fees(&mut self) -> &mut Self
pub fn clear_custom_fees(&mut self) -> &mut Self
Clears the custom fees for this topic.
Sourcepub fn get_custom_fees(&self) -> Option<&Vec<CustomFixedFee>>
pub fn get_custom_fees(&self) -> Option<&Vec<CustomFixedFee>>
The custom fees to be assessed during a message submission to this topic.
Sourcepub fn add_custom_fee(&mut self, fee: CustomFixedFee) -> &mut Self
pub fn add_custom_fee(&mut self, fee: CustomFixedFee) -> &mut Self
Adds a custom fee to the list of custom fees for this topic.