pub struct PinInput {
pub id: Option<Id>,
pub target_type: PinTargetType,
pub target_id: Id,
pub reason: Option<String>,
pub created_at: Option<Timestamp>,
pub expires_at: Option<Timestamp>,
pub scope_ids: ScopeIds,
}Expand description
Input for creating a new pin. Optional fields are auto-generated.
Fields§
§id: Option<Id>§target_type: PinTargetType§target_id: Id§reason: Option<String>§created_at: Option<Timestamp>§expires_at: Option<Timestamp>§scope_ids: ScopeIdsTrait Implementations§
Source§impl<'de> Deserialize<'de> for PinInput
impl<'de> Deserialize<'de> for PinInput
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 StructuralPartialEq for PinInput
Auto Trait Implementations§
impl Freeze for PinInput
impl RefUnwindSafe for PinInput
impl Send for PinInput
impl Sync for PinInput
impl Unpin for PinInput
impl UnsafeUnpin for PinInput
impl UnwindSafe for PinInput
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