pub struct VersionView {
pub created_at: Option<String>,
pub type: Option<String>,
pub version: Option<i32>,
}Fields§
§created_at: Option<String>CreatedAt is when this revision was appended, RFC 3339 UTC.
type: Option<String>Type is the kind this revision was written with, which may differ from the current one.
version: Option<i32>Version is this revision’s number, 1 for the first. Numbers are dense and never reused: deleting the prompt drops the whole history with it.
Implementations§
Source§impl VersionView
impl VersionView
pub fn new() -> VersionView
Trait Implementations§
Source§impl Clone for VersionView
impl Clone for VersionView
Source§fn clone(&self) -> VersionView
fn clone(&self) -> VersionView
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 VersionView
impl Debug for VersionView
Source§impl Default for VersionView
impl Default for VersionView
Source§fn default() -> VersionView
fn default() -> VersionView
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for VersionView
impl<'de> Deserialize<'de> for VersionView
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 VersionView
impl PartialEq for VersionView
Source§impl Serialize for VersionView
impl Serialize for VersionView
impl StructuralPartialEq for VersionView
Auto Trait Implementations§
impl Freeze for VersionView
impl RefUnwindSafe for VersionView
impl Send for VersionView
impl Sync for VersionView
impl Unpin for VersionView
impl UnsafeUnpin for VersionView
impl UnwindSafe for VersionView
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