pub struct AuthoredIntent {
pub id: String,
pub text: String,
pub file: String,
pub site: String,
pub status: Status,
pub verify: VerifyLevel,
pub text_hash: String,
pub body_hash: String,
}Expand description
One authored intent, carrying the fields the review surface and the
reviewed map need. The hashes are stringified so they line up with the
NudgeState reviewed map (id → {text_hash, body_hash}).
Fields§
§id: String§text: String§file: String§site: String§status: Status§verify: VerifyLevel§text_hash: String§body_hash: StringTrait Implementations§
Source§impl Clone for AuthoredIntent
impl Clone for AuthoredIntent
Source§fn clone(&self) -> AuthoredIntent
fn clone(&self) -> AuthoredIntent
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 AuthoredIntent
impl RefUnwindSafe for AuthoredIntent
impl Send for AuthoredIntent
impl Sync for AuthoredIntent
impl Unpin for AuthoredIntent
impl UnsafeUnpin for AuthoredIntent
impl UnwindSafe for AuthoredIntent
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