pub struct PromptDetail {
pub id: u64,
pub project_id: Option<u64>,
pub project_name: Option<String>,
pub title: String,
pub body: Option<String>,
pub pinned: bool,
pub pinned_position: Option<u64>,
pub attachments_count: u64,
pub created_at: Option<String>,
pub updated_at: Option<String>,
pub rendered_html: Option<String>,
pub attachments: Vec<Attachment>,
}Fields§
§id: u64§project_id: Option<u64>§project_name: Option<String>§title: String§body: Option<String>§pinned: bool§pinned_position: Option<u64>§attachments_count: u64§created_at: Option<String>§updated_at: Option<String>§rendered_html: Option<String>§attachments: Vec<Attachment>Trait Implementations§
Source§impl Clone for PromptDetail
impl Clone for PromptDetail
Source§impl Debug for PromptDetail
impl Debug for PromptDetail
Source§impl<'de> Deserialize<'de> for PromptDetail
impl<'de> Deserialize<'de> for PromptDetail
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 From<PromptDetail> for Prompt
impl From<PromptDetail> for Prompt
Source§fn from(detail: PromptDetail) -> Self
fn from(detail: PromptDetail) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Forget for PromptDetail
impl Freeze for PromptDetail
impl Move for PromptDetail
impl RefUnwindSafe for PromptDetail
impl Send for PromptDetailwhere
RawVecInner: Send,
impl Sync for PromptDetailwhere
RawVecInner: Sync,
impl Unpin for PromptDetail
impl UnsafeUnpin for PromptDetailwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Attachment>: UnsafeUnpin,
impl UnwindSafe for PromptDetailwhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more