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: String§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. Default 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>§actions: Option<Actions>§error: Option<ObjectError>Trait Implementations§
Source§impl Clone for ObjectResult
impl Clone for ObjectResult
Source§fn clone(&self) -> ObjectResult
fn clone(&self) -> ObjectResult
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 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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ObjectResult
impl PartialEq for ObjectResult
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
Mutably borrows from an owned value. Read more
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
Compare self to
key and return true if they are equal.