pub struct Note {Show 13 fields
pub id: Uuid,
pub commit: String,
pub file: Option<String>,
pub line_start: Option<u32>,
pub line_end: Option<u32>,
pub body: String,
pub author: String,
pub timestamp: DateTime<Utc>,
pub namespace: Namespace,
pub thread_id: Option<Uuid>,
pub status: NoteStatus,
pub tags: Vec<String>,
pub signature: Option<String>,
}Fields§
§id: Uuid§commit: String§file: Option<String>§line_start: Option<u32>§line_end: Option<u32>§body: String§timestamp: DateTime<Utc>§namespace: Namespace§thread_id: Option<Uuid>§status: NoteStatus§signature: Option<String>Implementations§
Source§impl Note
impl Note
pub fn new( commit: String, file: Option<String>, line_start: Option<u32>, line_end: Option<u32>, body: String, author: String, namespace: Namespace, ) -> Self
pub fn reply(parent: &Note, body: String, author: String) -> Self
Sourcepub fn signing_payload(&self) -> String
pub fn signing_payload(&self) -> String
Canonical payload string to sign and verify
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Note
impl<'de> Deserialize<'de> for Note
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 Note
Auto Trait Implementations§
impl Freeze for Note
impl RefUnwindSafe for Note
impl Send for Note
impl Sync for Note
impl Unpin for Note
impl UnsafeUnpin for Note
impl UnwindSafe for Note
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