pub struct CreatePinBody {
pub target_type: PinTargetType,
pub target_id: Id,
pub note: Option<String>,
pub ttl_ms: Option<i64>,
pub scope_ids: Option<ScopeIds>,
}Expand description
POST /v1/pins body — create a pin.
Fields§
§target_type: PinTargetTypeWhat kind of entity is being pinned.
target_id: IdThe id of the observation or summary to pin.
note: Option<String>Optional free-text note.
ttl_ms: Option<i64>Optional time-to-live in milliseconds; the pin expires after this.
scope_ids: Option<ScopeIds>Optional scope override for the pin.
Implementations§
Source§impl CreatePinBody
impl CreatePinBody
Sourcepub fn new(target_type: PinTargetType, target_id: impl Into<Id>) -> Self
pub fn new(target_type: PinTargetType, target_id: impl Into<Id>) -> Self
Construct a minimal pin body for target_type/target_id.
Trait Implementations§
Source§impl Clone for CreatePinBody
impl Clone for CreatePinBody
Source§fn clone(&self) -> CreatePinBody
fn clone(&self) -> CreatePinBody
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 CreatePinBody
impl Debug for CreatePinBody
Auto Trait Implementations§
impl Freeze for CreatePinBody
impl RefUnwindSafe for CreatePinBody
impl Send for CreatePinBody
impl Sync for CreatePinBody
impl Unpin for CreatePinBody
impl UnsafeUnpin for CreatePinBody
impl UnwindSafe for CreatePinBody
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