pub struct PartSetHeader {
pub total: u64,
pub hash: Vec<u8>,
/* private fields */
}Fields§
§total: u64§hash: Vec<u8>Implementations§
Source§impl PartSetHeader
impl PartSetHeader
pub fn new() -> PartSetHeader
pub fn default_instance() -> &'static PartSetHeader
pub fn clear_total(&mut self)
pub fn set_total(&mut self, v: u64)
pub fn get_total(&self) -> u64
pub fn clear_hash(&mut self)
pub fn set_hash(&mut self, v: Vec<u8>)
pub fn mut_hash(&mut self) -> &mut Vec<u8> ⓘ
pub fn take_hash(&mut self) -> Vec<u8> ⓘ
pub fn get_hash(&self) -> &[u8] ⓘ
Trait Implementations§
Source§impl Clone for PartSetHeader
impl Clone for PartSetHeader
Source§fn clone(&self) -> PartSetHeader
fn clone(&self) -> PartSetHeader
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 PartSetHeader
impl Debug for PartSetHeader
Source§impl Default for PartSetHeader
impl Default for PartSetHeader
Source§fn default() -> PartSetHeader
fn default() -> PartSetHeader
Returns the “default value” for a type. Read more
Source§impl Message for PartSetHeader
impl Message for PartSetHeader
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 PartSetHeader
impl MessageStatic for PartSetHeader
fn new() -> PartSetHeader
fn descriptor_static(_: Option<PartSetHeader>) -> &'static MessageDescriptor
Source§impl PartialEq for PartSetHeader
impl PartialEq for PartSetHeader
Source§impl ProtobufValue for PartSetHeader
impl ProtobufValue for PartSetHeader
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 PartSetHeader
impl Sync for PartSetHeader
Auto Trait Implementations§
impl !Freeze for PartSetHeader
impl !RefUnwindSafe for PartSetHeader
impl Send for PartSetHeader
impl Unpin for PartSetHeader
impl UnwindSafe for PartSetHeader
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