#[repr(i32)]pub enum InspectObjectKind {
INSPECT_OBJECT_KIND_UNSPECIFIED = 0,
INSPECT_OBJECT_KIND_BLOB = 1,
INSPECT_OBJECT_KIND_CHUNKED_FILE = 2,
INSPECT_OBJECT_KIND_CHUNK = 3,
}Available on crate feature
hooks only.Expand description
File-object classification, independent of extraction; SPEC-SERVER §11.1.
Variants§
INSPECT_OBJECT_KIND_UNSPECIFIED = 0
Legacy unspecified kind; callers of the §11 contract send an explicit kind.
INSPECT_OBJECT_KIND_BLOB = 1
Plain blob of any size, including an extracted blob.
INSPECT_OBJECT_KIND_CHUNKED_FILE = 2
Chunked-file manifest; its chunks are also inspected.
INSPECT_OBJECT_KIND_CHUNK = 3
A chunk of a newly reachable chunked file or of an added pack; a blob also used as a chunk is reported once as BLOB.
Implementations§
Source§impl InspectObjectKind
impl InspectObjectKind
Sourcepub const Unspecified: Self = Self::INSPECT_OBJECT_KIND_UNSPECIFIED
pub const Unspecified: Self = Self::INSPECT_OBJECT_KIND_UNSPECIFIED
Idiomatic alias for Self::INSPECT_OBJECT_KIND_UNSPECIFIED; Debug prints the variant name.
Sourcepub const Blob: Self = Self::INSPECT_OBJECT_KIND_BLOB
pub const Blob: Self = Self::INSPECT_OBJECT_KIND_BLOB
Idiomatic alias for Self::INSPECT_OBJECT_KIND_BLOB; Debug prints the variant name.
Sourcepub const ChunkedFile: Self = Self::INSPECT_OBJECT_KIND_CHUNKED_FILE
pub const ChunkedFile: Self = Self::INSPECT_OBJECT_KIND_CHUNKED_FILE
Idiomatic alias for Self::INSPECT_OBJECT_KIND_CHUNKED_FILE; Debug prints the variant name.
Sourcepub const Chunk: Self = Self::INSPECT_OBJECT_KIND_CHUNK
pub const Chunk: Self = Self::INSPECT_OBJECT_KIND_CHUNK
Idiomatic alias for Self::INSPECT_OBJECT_KIND_CHUNK; Debug prints the variant name.
Trait Implementations§
Source§impl Clone for InspectObjectKind
impl Clone for InspectObjectKind
impl Copy for InspectObjectKind
Source§impl Debug for InspectObjectKind
impl Debug for InspectObjectKind
Source§impl Default for InspectObjectKind
impl Default for InspectObjectKind
Source§impl<'de> Deserialize<'de> for InspectObjectKind
impl<'de> Deserialize<'de> for InspectObjectKind
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Enumeration for InspectObjectKind
impl Enumeration for InspectObjectKind
Source§fn proto_name(&self) -> &'static str
fn proto_name(&self) -> &'static str
The name of this enum variant as it appears in the
.proto file.impl Eq for InspectObjectKind
Source§impl Hash for InspectObjectKind
impl Hash for InspectObjectKind
Source§impl PartialEq for InspectObjectKind
impl PartialEq for InspectObjectKind
Source§impl ProtoElemJson for InspectObjectKind
impl ProtoElemJson for InspectObjectKind
Source§fn serialize_proto_json<S: Serializer>(
v: &Self,
s: S,
) -> Result<S::Ok, S::Error>
fn serialize_proto_json<S: Serializer>( v: &Self, s: S, ) -> Result<S::Ok, S::Error>
Serialize this value with proto3 JSON semantics.
Source§fn deserialize_proto_json<'de, D: Deserializer<'de>>(
d: D,
) -> Result<Self, D::Error>
fn deserialize_proto_json<'de, D: Deserializer<'de>>( d: D, ) -> Result<Self, D::Error>
Deserialize a value with proto3 JSON semantics.
Source§impl Serialize for InspectObjectKind
impl Serialize for InspectObjectKind
impl StructuralPartialEq for InspectObjectKind
Auto Trait Implementations§
impl Freeze for InspectObjectKind
impl RefUnwindSafe for InspectObjectKind
impl Send for InspectObjectKind
impl Sync for InspectObjectKind
impl Unpin for InspectObjectKind
impl UnsafeUnpin for InspectObjectKind
impl UnwindSafe for InspectObjectKind
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