pub struct CleanupHandle {
pub handle_type: String,
pub value: Value,
}Expand description
A handle registered by an attempt: what its cleanup needs that only existed in it.
Fields§
§handle_type: StringIts type’s name (a dataclass’s name, or schedr task-ctx cleanup add’s first argument).
value: ValueIts fields, as stored JSON.
Trait Implementations§
Source§impl Clone for CleanupHandle
impl Clone for CleanupHandle
Source§fn clone(&self) -> CleanupHandle
fn clone(&self) -> CleanupHandle
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 CleanupHandle
impl Debug for CleanupHandle
Source§impl<'de> Deserialize<'de> for CleanupHandle
impl<'de> Deserialize<'de> for CleanupHandle
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
impl Eq for CleanupHandle
Source§impl JsonSchema for CleanupHandle
impl JsonSchema for CleanupHandle
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 inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for CleanupHandle
impl PartialEq for CleanupHandle
Source§impl Serialize for CleanupHandle
impl Serialize for CleanupHandle
impl StructuralPartialEq for CleanupHandle
Auto Trait Implementations§
impl Freeze for CleanupHandle
impl RefUnwindSafe for CleanupHandle
impl Send for CleanupHandle
impl Sync for CleanupHandle
impl Unpin for CleanupHandle
impl UnsafeUnpin for CleanupHandle
impl UnwindSafe for CleanupHandle
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