pub struct ObjectResponse {
pub id: ObjectId,
pub owner: String,
pub is_pinned: bool,
pub size: Uint128,
pub compressed_size: Uint128,
pub compression_algorithm: CompressionAlgorithm,
}Expand description
§ObjectResponse
ObjectResponse is the response of the Object query.
Fields§
§id: ObjectIdThe id of the object.
owner: StringThe owner of the object.
is_pinned: boolTells if the object is pinned by at least one address.
size: Uint128The size of the object.
compressed_size: Uint128The size of the object when compressed. If the object is not compressed, the value is the
same as size.
compression_algorithm: CompressionAlgorithmThe compression algorithm used to compress the content of the object.
Trait Implementations§
Source§impl Clone for ObjectResponse
impl Clone for ObjectResponse
Source§fn clone(&self) -> ObjectResponse
fn clone(&self) -> ObjectResponse
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 ObjectResponse
impl Debug for ObjectResponse
Source§impl<'de> Deserialize<'de> for ObjectResponse
impl<'de> Deserialize<'de> for ObjectResponse
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 From<&Object> for ObjectResponse
impl From<&Object> for ObjectResponse
Source§impl JsonSchema for ObjectResponse
impl JsonSchema for ObjectResponse
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ObjectResponse
impl PartialEq for ObjectResponse
Source§impl Serialize for ObjectResponse
impl Serialize for ObjectResponse
impl StructuralPartialEq for ObjectResponse
Auto Trait Implementations§
impl Freeze for ObjectResponse
impl RefUnwindSafe for ObjectResponse
impl Send for ObjectResponse
impl Sync for ObjectResponse
impl Unpin for ObjectResponse
impl UnsafeUnpin for ObjectResponse
impl UnwindSafe for ObjectResponse
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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>
Converts
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>
Converts
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