pub struct StageArtifactTransferRequest {
pub gen: u32,
pub requester_id: Vec<u8>,
pub topology_id: String,
pub run_id: String,
pub stage_id: String,
pub package_ref: String,
pub manifest_sha256: String,
pub relative_path: String,
pub offset: u64,
pub expected_size: Option<u64>,
pub expected_sha256: Option<String>,
}Fields§
§gen: u32§requester_id: Vec<u8>§topology_id: String§run_id: String§stage_id: String§package_ref: String§manifest_sha256: String§relative_path: String§offset: u64§expected_size: Option<u64>§expected_sha256: Option<String>Implementations§
Source§impl StageArtifactTransferRequest
impl StageArtifactTransferRequest
Sourcepub fn expected_size(&self) -> u64
pub fn expected_size(&self) -> u64
Returns the value of expected_size, or the default value if expected_size is unset.
Sourcepub fn expected_sha256(&self) -> &str
pub fn expected_sha256(&self) -> &str
Returns the value of expected_sha256, or the default value if expected_sha256 is unset.
Trait Implementations§
Source§impl Clone for StageArtifactTransferRequest
impl Clone for StageArtifactTransferRequest
Source§fn clone(&self) -> StageArtifactTransferRequest
fn clone(&self) -> StageArtifactTransferRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StageArtifactTransferRequest
impl Debug for StageArtifactTransferRequest
impl Eq for StageArtifactTransferRequest
Source§impl Hash for StageArtifactTransferRequest
impl Hash for StageArtifactTransferRequest
Source§impl Message for StageArtifactTransferRequest
impl Message for StageArtifactTransferRequest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
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,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
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,
Encodes the message with a length-delimiter to a buffer. Read more
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,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
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,
Decodes a length-delimited instance of the message from the buffer.
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,
Decodes an instance of the message from a buffer, and merges it into
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,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.impl StructuralPartialEq for StageArtifactTransferRequest
Auto Trait Implementations§
impl Freeze for StageArtifactTransferRequest
impl RefUnwindSafe for StageArtifactTransferRequest
impl Send for StageArtifactTransferRequest
impl Sync for StageArtifactTransferRequest
impl Unpin for StageArtifactTransferRequest
impl UnsafeUnpin for StageArtifactTransferRequest
impl UnwindSafe for StageArtifactTransferRequest
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