pub struct RequestQuery {
pub data: Vec<u8>,
pub path: String,
pub height: u64,
pub prove: bool,
/* private fields */
}Fields§
§data: Vec<u8>§path: String§height: u64§prove: boolImplementations§
Source§impl RequestQuery
impl RequestQuery
pub fn new() -> RequestQuery
pub fn default_instance() -> &'static RequestQuery
pub fn clear_data(&mut self)
pub fn set_data(&mut self, v: Vec<u8>)
pub fn mut_data(&mut self) -> &mut Vec<u8> ⓘ
pub fn take_data(&mut self) -> Vec<u8> ⓘ
pub fn get_data(&self) -> &[u8] ⓘ
pub fn clear_path(&mut self)
pub fn set_path(&mut self, v: String)
pub fn mut_path(&mut self) -> &mut String
pub fn take_path(&mut self) -> String
pub fn get_path(&self) -> &str
pub fn clear_height(&mut self)
pub fn set_height(&mut self, v: u64)
pub fn get_height(&self) -> u64
pub fn clear_prove(&mut self)
pub fn set_prove(&mut self, v: bool)
pub fn get_prove(&self) -> bool
Trait Implementations§
Source§impl Clone for RequestQuery
impl Clone for RequestQuery
Source§fn clone(&self) -> RequestQuery
fn clone(&self) -> RequestQuery
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RequestQuery
impl Debug for RequestQuery
Source§impl Default for RequestQuery
impl Default for RequestQuery
Source§fn default() -> RequestQuery
fn default() -> RequestQuery
Returns the “default value” for a type. Read more
Source§impl Message for RequestQuery
impl Message for RequestQuery
fn is_initialized(&self) -> bool
fn merge_from(&mut self, is: &mut CodedInputStream<'_>) -> ProtobufResult<()>
fn compute_size(&self) -> u32
fn write_to_with_cached_sizes( &self, os: &mut CodedOutputStream<'_>, ) -> ProtobufResult<()>
fn get_cached_size(&self) -> u32
fn get_unknown_fields(&self) -> &UnknownFields
fn mut_unknown_fields(&mut self) -> &mut UnknownFields
fn as_any(&self) -> &dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
fn into_any(self: Box<Self>) -> Box<dyn Any>
fn descriptor(&self) -> &'static MessageDescriptor
fn write_to(&self, os: &mut CodedOutputStream<'_>) -> Result<(), ProtobufError>
fn write_length_delimited_to( &self, os: &mut CodedOutputStream<'_>, ) -> Result<(), ProtobufError>
fn write_length_delimited_to_vec( &self, vec: &mut Vec<u8>, ) -> Result<(), ProtobufError>
fn merge_from_bytes(&mut self, bytes: &[u8]) -> Result<(), ProtobufError>
fn check_initialized(&self) -> Result<(), ProtobufError>
fn write_to_writer(&self, w: &mut dyn Write) -> Result<(), ProtobufError>
fn write_to_vec(&self, v: &mut Vec<u8>) -> Result<(), ProtobufError>
fn write_to_bytes(&self) -> Result<Vec<u8>, ProtobufError>
fn write_length_delimited_to_writer( &self, w: &mut dyn Write, ) -> Result<(), ProtobufError>
fn write_length_delimited_to_bytes(&self) -> Result<Vec<u8>, ProtobufError>
fn type_id(&self) -> TypeId
Source§impl MessageStatic for RequestQuery
impl MessageStatic for RequestQuery
fn new() -> RequestQuery
fn descriptor_static(_: Option<RequestQuery>) -> &'static MessageDescriptor
Source§impl PartialEq for RequestQuery
impl PartialEq for RequestQuery
Source§impl ProtobufValue for RequestQuery
impl ProtobufValue for RequestQuery
fn as_ref(&self) -> ProtobufValueRef<'_>
fn as_any(&self) -> &(dyn Any + 'static)
fn is_non_zero(&self) -> bool
fn as_ref_copy(&self) -> ProtobufValueRef<'static>
impl StructuralPartialEq for RequestQuery
impl Sync for RequestQuery
Auto Trait Implementations§
impl !Freeze for RequestQuery
impl !RefUnwindSafe for RequestQuery
impl Send for RequestQuery
impl Unpin for RequestQuery
impl UnwindSafe for RequestQuery
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