pub struct ResearchEnquiry {
pub id: String,
pub purpose: String,
pub scope: Vec<String>,
pub constraints: Vec<ResearchConstraint>,
pub questions: Vec<ResearchQuestion>,
pub metadata: BTreeMap<String, String>,
}Expand description
A research enquiry with scope, constraints, and questions.
Fields§
§id: String§purpose: String§scope: Vec<String>§constraints: Vec<ResearchConstraint>§questions: Vec<ResearchQuestion>§metadata: BTreeMap<String, String>Implementations§
Source§impl ResearchEnquiry
impl ResearchEnquiry
Sourcepub fn set_purpose(&mut self, purpose: &str)
pub fn set_purpose(&mut self, purpose: &str)
Updates the enquiry purpose.
Sourcepub fn define_scope(&mut self, scope: Vec<String>)
pub fn define_scope(&mut self, scope: Vec<String>)
Sets the topical scope.
Sourcepub fn add_constraint(&mut self, constraint: ResearchConstraint)
pub fn add_constraint(&mut self, constraint: ResearchConstraint)
Adds a research constraint.
Sourcepub fn add_question(&mut self, question: ResearchQuestion)
pub fn add_question(&mut self, question: ResearchQuestion)
Adds a research question.
Sourcepub fn link_questions(&mut self, q1: &str, q2: &str)
pub fn link_questions(&mut self, q1: &str, q2: &str)
Links q1→q2 as related.
Sourcepub fn question_count(&self) -> usize
pub fn question_count(&self) -> usize
Total questions.
Sourcepub fn answered_count(&self) -> usize
pub fn answered_count(&self) -> usize
Questions with recorded answers.
Trait Implementations§
Source§impl Clone for ResearchEnquiry
impl Clone for ResearchEnquiry
Auto Trait Implementations§
impl Freeze for ResearchEnquiry
impl RefUnwindSafe for ResearchEnquiry
impl Send for ResearchEnquiry
impl Sync for ResearchEnquiry
impl Unpin for ResearchEnquiry
impl UnsafeUnpin for ResearchEnquiry
impl UnwindSafe for ResearchEnquiry
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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