pub struct Container {
pub id: String,
pub object: String,
pub name: Option<String>,
pub status: Option<String>,
pub created_at: Option<u64>,
pub metadata: BTreeMap<String, String>,
pub extra: BTreeMap<String, Value>,
}Expand description
表示 container 对象。
Fields§
§id: StringContainer ID。
object: String对象类型。
name: Option<String>名称。
status: Option<String>当前状态。
created_at: Option<u64>创建时间。
metadata: BTreeMap<String, String>自定义 metadata。
extra: BTreeMap<String, Value>额外字段。
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Container
impl<'de> Deserialize<'de> for Container
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
Auto Trait Implementations§
impl Freeze for Container
impl RefUnwindSafe for Container
impl Send for Container
impl Sync for Container
impl Unpin for Container
impl UnsafeUnpin for Container
impl UnwindSafe for Container
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