pub struct CapsuleInput {
pub id: Option<Id>,
pub kind: CapsuleType,
pub intent: String,
pub status: Option<CapsuleStatus>,
pub opened_at: Option<Timestamp>,
pub closed_at: Option<Timestamp>,
pub scope_ids: ScopeIds,
pub observation_ids: Option<Vec<Id>>,
pub summary_id: Option<Id>,
}Expand description
Input for creating a new capsule. Optional fields are auto-generated.
Fields§
§id: Option<Id>§kind: CapsuleType§intent: String§status: Option<CapsuleStatus>§opened_at: Option<Timestamp>§closed_at: Option<Timestamp>§scope_ids: ScopeIds§observation_ids: Option<Vec<Id>>§summary_id: Option<Id>Trait Implementations§
Source§impl Clone for CapsuleInput
impl Clone for CapsuleInput
Source§fn clone(&self) -> CapsuleInput
fn clone(&self) -> CapsuleInput
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 CapsuleInput
impl Debug for CapsuleInput
Source§impl<'de> Deserialize<'de> for CapsuleInput
impl<'de> Deserialize<'de> for CapsuleInput
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 PartialEq for CapsuleInput
impl PartialEq for CapsuleInput
Source§fn eq(&self, other: &CapsuleInput) -> bool
fn eq(&self, other: &CapsuleInput) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CapsuleInput
impl Serialize for CapsuleInput
impl StructuralPartialEq for CapsuleInput
Auto Trait Implementations§
impl Freeze for CapsuleInput
impl RefUnwindSafe for CapsuleInput
impl Send for CapsuleInput
impl Sync for CapsuleInput
impl Unpin for CapsuleInput
impl UnsafeUnpin for CapsuleInput
impl UnwindSafe for CapsuleInput
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