Struct GetLayerParams
pub struct GetLayerParams {
pub diff_id: Option<String>,
pub storage: Option<StorageLocator>,
}Expand description
Parameters for the GetLayer method of the org.composefs.Oci interface.
Exactly one of diff_id or storage must be set:
- Repo service (
CfsctlService): readsdiff_id, errors ifNone. - Cstor service (
CstorLayerService): readsstorage, errors ifNone.
Both fields are Option for forward-compatibility: new locator kinds can
be added in future without breaking old clients.
Fields§
§diff_id: Option<String>OCI diff-id (sha256:…) identifying the layer in a composefs repo.
storage: Option<StorageLocator>Location of a specific layer inside a containers-storage store.
Trait Implementations§
§impl Clone for GetLayerParams
impl Clone for GetLayerParams
§fn clone(&self) -> GetLayerParams
fn clone(&self) -> GetLayerParams
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 more§impl Debug for GetLayerParams
impl Debug for GetLayerParams
§impl<'de> Deserialize<'de> for GetLayerParams
impl<'de> Deserialize<'de> for GetLayerParams
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<GetLayerParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<GetLayerParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Serialize for GetLayerParams
impl Serialize for GetLayerParams
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
§impl Type for GetLayerParams
impl Type for GetLayerParams
Auto Trait Implementations§
impl Freeze for GetLayerParams
impl RefUnwindSafe for GetLayerParams
impl Send for GetLayerParams
impl Sync for GetLayerParams
impl Unpin for GetLayerParams
impl UnsafeUnpin for GetLayerParams
impl UnwindSafe for GetLayerParams
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<S> CanonJsonSerialize for Swhere
S: Serialize,
impl<S> CanonJsonSerialize for Swhere
S: Serialize,
§fn to_canon_json_writer<W>(&self, writer: W) -> Result<(), Error>where
W: Write,
fn to_canon_json_writer<W>(&self, writer: W) -> Result<(), Error>where
W: Write,
Serialize the given data structure as JSON into the I/O stream.
§fn to_canon_json_vec(&self) -> Result<Vec<u8>, Error>
fn to_canon_json_vec(&self) -> Result<Vec<u8>, Error>
Serialize the given data structure as a JSON byte vector.
§fn to_canon_json_string(&self) -> Result<String, Error>
fn to_canon_json_string(&self) -> Result<String, Error>
Serialize the given data structure as a String.
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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