pub struct FileInfo {
pub file_id: FileId,
pub size: u64,
pub expiration_time: Option<OffsetDateTime>,
pub auto_renew_period: Option<Duration>,
pub auto_renew_account_id: Option<AccountId>,
pub is_deleted: bool,
pub keys: KeyList,
pub file_memo: String,
pub ledger_id: LedgerId,
}
Expand description
Response from FileInfoQuery
.
Fields§
§file_id: FileId
The file ID of the file for which information is requested.
size: u64
Number of bytes in contents.
expiration_time: Option<OffsetDateTime>
Current time which this account is set to expire.
auto_renew_period: Option<Duration>
The auto renew period for this file.
§Network Support
Please note that this not supported on any hedera network at this time.
auto_renew_account_id: Option<AccountId>
The account to be used at this file’s expiration time to extend the life of the file.
§Network Support
Please note that this not supported on any hedera network at this time.
is_deleted: bool
True if deleted but not yet expired.
keys: KeyList
One of these keys must sign in order to modify or delete the file.
file_memo: String
Memo associated with the file.
ledger_id: LedgerId
Ledger ID for the network the response was returned from.
Implementations§
source§impl FileInfo
impl FileInfo
sourcepub fn from_bytes(bytes: &[u8]) -> Result<Self>
pub fn from_bytes(bytes: &[u8]) -> Result<Self>
Create a new FileInfo
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 FileInfo
impl RefUnwindSafe for FileInfo
impl Send for FileInfo
impl Sync for FileInfo
impl Unpin for FileInfo
impl UnwindSafe for FileInfo
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
Mutably borrows from an owned value. Read more
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>
Wrap the input message
T
in a tonic::Request