pub struct CreatePinOptions {
pub target_type: PinTargetType,
pub target_id: Id,
pub note: Option<String>,
pub ttl_ms: Option<i64>,
pub scope_ids: Option<ScopeIds>,
}Expand description
Options for KindlingService::pin.
Mirrors CreatePinOptions in the TS service. note becomes the pin’s
reason; ttl_ms sets expires_at = now + ttl_ms.
Fields§
§target_type: PinTargetTypeWhat kind of entity the pin targets.
target_id: IdId of the targeted observation or summary.
note: Option<String>Optional human note (stored as the pin reason).
ttl_ms: Option<i64>Time-to-live in ms; None means the pin never expires.
scope_ids: Option<ScopeIds>Scope for the pin; defaults to empty.
Trait Implementations§
Source§impl Clone for CreatePinOptions
impl Clone for CreatePinOptions
Source§fn clone(&self) -> CreatePinOptions
fn clone(&self) -> CreatePinOptions
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 moreAuto Trait Implementations§
impl Freeze for CreatePinOptions
impl RefUnwindSafe for CreatePinOptions
impl Send for CreatePinOptions
impl Sync for CreatePinOptions
impl Unpin for CreatePinOptions
impl UnsafeUnpin for CreatePinOptions
impl UnwindSafe for CreatePinOptions
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