pub struct TopicInfo {
pub topic_id: TopicId,
pub topic_memo: String,
pub running_hash: Vec<u8>,
pub sequence_number: u64,
pub expiration_time: Option<OffsetDateTime>,
pub admin_key: Option<Key>,
pub submit_key: Option<Key>,
pub auto_renew_account_id: Option<AccountId>,
pub auto_renew_period: Option<Duration>,
pub ledger_id: LedgerId,
}
Expand description
Response from TopicInfoQuery
.
Fields§
§topic_id: TopicId
The ID of the topic for which information is requested.
topic_memo: String
Short publicly visible memo about the topic. No guarantee of uniqueness
running_hash: Vec<u8>
SHA-384 running hash of (previousRunningHash, topicId, consensusTimestamp, sequenceNumber, message).
sequence_number: u64
Sequence number (starting at 1 for the first submitMessage) of messages on the topic.
expiration_time: Option<OffsetDateTime>
Effective consensus timestamp at (and after) which submitMessage calls will no longer succeed on the topic.
admin_key: Option<Key>
Access control for update/delete of the topic.
submit_key: Option<Key>
Access control for submit message.
auto_renew_account_id: Option<AccountId>
An account which will be automatically charged to renew the topic’s expiration, at
auto_renew_period
interval.
auto_renew_period: Option<Duration>
The interval at which the auto-renew account will be charged to extend the topic’s expiry.
ledger_id: LedgerId
The ledger ID the response was returned from
Implementations§
source§impl TopicInfo
impl TopicInfo
sourcepub fn from_bytes(bytes: &[u8]) -> Result<Self>
pub fn from_bytes(bytes: &[u8]) -> Result<Self>
Create a new TopicInfo
from protobuf-encoded bytes
.
§Errors
Error::FromProtobuf
if decoding the bytes fails to produce a valid protobuf.Error::FromProtobuf
if decoding the protobuf fails.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TopicInfo
impl RefUnwindSafe for TopicInfo
impl Send for TopicInfo
impl Sync for TopicInfo
impl Unpin for TopicInfo
impl UnwindSafe for TopicInfo
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request