pub struct FileGetInfoQuery {
pub header: Option<QueryHeader>,
pub file_id: Option<FileId>,
}Expand description
Query to request file metadata from the Hedera File Service (HFS).
This query requests all of the information about a file, but none of the
content of a file. A client should submit a fileGetContents query to
view the content of a file. File content may also be available from a
block node or mirror node, generally at lower cost.
File metadata SHALL be available for active files and deleted files.
The size of a deleted file SHALL be 0 and the content SHALL be empty.
Fields§
§header: Option<QueryHeader>Standard information sent with every query operation.
This includes the signed payment and what kind of response is requested
(cost, state proof, both, or neither).
file_id: Option<FileId>A file identifier.
This MUST be the identifier of a file that exists in HFS.
This value SHALL identify the file to be queried.
Trait Implementations§
Source§impl Clone for FileGetInfoQuery
impl Clone for FileGetInfoQuery
Source§fn clone(&self) -> FileGetInfoQuery
fn clone(&self) -> FileGetInfoQuery
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FileGetInfoQuery
impl Debug for FileGetInfoQuery
Source§impl Default for FileGetInfoQuery
impl Default for FileGetInfoQuery
Source§impl Message for FileGetInfoQuery
impl Message for FileGetInfoQuery
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for FileGetInfoQuery
impl PartialEq for FileGetInfoQuery
impl StructuralPartialEq for FileGetInfoQuery
Auto Trait Implementations§
impl Freeze for FileGetInfoQuery
impl RefUnwindSafe for FileGetInfoQuery
impl Send for FileGetInfoQuery
impl Sync for FileGetInfoQuery
impl Unpin for FileGetInfoQuery
impl UnsafeUnpin for FileGetInfoQuery
impl UnwindSafe for FileGetInfoQuery
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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