pub struct MediaRequestInfo {
pub current_bytes: Option<i64>,
pub custom_data: Option<String>,
pub diff_object_version: Option<String>,
pub final_status: Option<i32>,
pub notification_type: Option<String>,
pub request_id: Option<String>,
pub request_received_params_serving_info: Option<Vec<u8>>,
pub total_bytes: Option<i64>,
pub total_bytes_is_estimated: Option<bool>,
}
Expand description
Extra information added to operations that support Scotty media requests.
This type is not used in any activity, and only used as part of another schema.
Fields§
§current_bytes: Option<i64>
The number of current bytes uploaded or downloaded.
custom_data: Option<String>
Data to be copied to backend requests. Custom data is returned to Scotty in the agent_state field, which Scotty will then provide in subsequent upload notifications.
diff_object_version: Option<String>
Set if the http request info is diff encoded. The value of this field is the version number of the base revision. This is corresponding to Apiary’s mediaDiffObjectVersion (//depot/google3/java/com/google/api/server/media/variable/DiffObjectVersionVariable.java). See go/esf-scotty-diff-upload for more information.
final_status: Option<i32>
The existence of the final_status field indicates that this is the last call to the agent for this request_id. http://google3/uploader/agent/scotty_agent.proto?l=737&rcl=347601929
notification_type: Option<String>
The type of notification received from Scotty.
request_id: Option<String>
The Scotty request ID.
request_received_params_serving_info: Option<Vec<u8>>
The partition of the Scotty server handling this request. type is uploader_service.RequestReceivedParamsServingInfo LINT.IfChange(request_received_params_serving_info_annotations) LINT.ThenChange()
total_bytes: Option<i64>
The total size of the file.
total_bytes_is_estimated: Option<bool>
Whether the total bytes field contains an estimated data.
Trait Implementations§
Source§impl Clone for MediaRequestInfo
impl Clone for MediaRequestInfo
Source§fn clone(&self) -> MediaRequestInfo
fn clone(&self) -> MediaRequestInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for MediaRequestInfo
impl Debug for MediaRequestInfo
Source§impl Default for MediaRequestInfo
impl Default for MediaRequestInfo
Source§fn default() -> MediaRequestInfo
fn default() -> MediaRequestInfo
Source§impl<'de> Deserialize<'de> for MediaRequestInfo
impl<'de> Deserialize<'de> for MediaRequestInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for MediaRequestInfo
impl Serialize for MediaRequestInfo
impl Part for MediaRequestInfo
Auto Trait Implementations§
impl Freeze for MediaRequestInfo
impl RefUnwindSafe for MediaRequestInfo
impl Send for MediaRequestInfo
impl Sync for MediaRequestInfo
impl Unpin for MediaRequestInfo
impl UnwindSafe for MediaRequestInfo
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more