pub struct ObjectResult {
pub oid: String,
pub size: u64,
pub authenticated: Option<bool>,
pub actions: Option<Actions>,
pub error: Option<ObjectError>,
}Expand description
Per-object result inside a batch response.
Either actions or error is populated; both being absent means
“server already has this object” (an upload no-op).
Fields§
§oid: StringEcho of the OID from the corresponding ObjectSpec.
size: u64Size in bytes.
Per the spec this is required, but the upstream
lfstest-gitserver (and at least one production server in
the wild) omit it on the action path: they assume the client
already knows. Defaults to 0 so we don’t refuse the response;
callers that need the real size should look it up from the
matching request entry.
authenticated: Option<bool>Some(true) if the server authenticated this response (and
the action URLs are pre-signed). Optional in the spec.
actions: Option<Actions>The transfer URLs to use. None when error is set or when
the server already has the object.
error: Option<ObjectError>Per-object error from the server. None on the success path.
Trait Implementations§
Source§impl Clone for ObjectResult
impl Clone for ObjectResult
Source§fn clone(&self) -> ObjectResult
fn clone(&self) -> ObjectResult
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 ObjectResult
impl Debug for ObjectResult
Source§impl<'de> Deserialize<'de> for ObjectResult
impl<'de> Deserialize<'de> for ObjectResult
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 PartialEq for ObjectResult
impl PartialEq for ObjectResult
Source§fn eq(&self, other: &ObjectResult) -> bool
fn eq(&self, other: &ObjectResult) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for ObjectResult
impl Serialize for ObjectResult
impl Eq for ObjectResult
impl StructuralPartialEq for ObjectResult
Auto Trait Implementations§
impl Freeze for ObjectResult
impl RefUnwindSafe for ObjectResult
impl Send for ObjectResult
impl Sync for ObjectResult
impl Unpin for ObjectResult
impl UnsafeUnpin for ObjectResult
impl UnwindSafe for ObjectResult
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.