Struct vit_servicing_station_tests::common::data::Snapshot
source · pub struct Snapshot {
funds: Vec<Fund>,
proposals: Vec<FullProposalInfo>,
challenges: Vec<Challenge>,
tokens: HashMap<String, ApiTokenData>,
voteplans: Vec<Voteplan>,
reviews: Vec<AdvisorReview>,
goals: Vec<Goal>,
}
Fields§
§funds: Vec<Fund>
§proposals: Vec<FullProposalInfo>
§challenges: Vec<Challenge>
§tokens: HashMap<String, ApiTokenData>
§voteplans: Vec<Voteplan>
§reviews: Vec<AdvisorReview>
§goals: Vec<Goal>
Implementations§
source§impl Snapshot
impl Snapshot
pub fn new( funds: Vec<Fund>, proposals: Vec<FullProposalInfo>, challenges: Vec<Challenge>, tokens: HashMap<String, ApiTokenData>, voteplans: Vec<Voteplan>, reviews: Vec<AdvisorReview>, goals: Vec<Goal> ) -> Self
pub fn funds(&self) -> Vec<Fund>
pub fn proposals(&self) -> Vec<FullProposalInfo>
pub fn tokens(&self) -> HashMap<String, ApiTokenData>
pub fn voteplans(&self) -> Vec<Voteplan>
pub fn funds_mut(&mut self) -> &mut Vec<Fund>
pub fn proposals_mut(&mut self) -> &mut Vec<FullProposalInfo>
pub fn voteplans_mut(&mut self) -> &mut Vec<Voteplan>
pub fn proposal_by_id(&self, id: &str) -> Option<&FullProposalInfo>
pub fn fund_by_id(&self, id: i32) -> Option<&Fund>
pub fn any_token(&self) -> (String, ApiTokenData)
pub fn token_hash(&self) -> String
pub fn challenges(&self) -> Vec<Challenge>
pub fn challenges_mut(&mut self) -> &mut Vec<Challenge>
pub fn advisor_reviews(&self) -> Vec<AdvisorReview>
pub fn groups(&self) -> Vec<Group>
pub fn advisor_reviews_mut(&mut self) -> &mut Vec<AdvisorReview>
pub fn goals(&self) -> Vec<Goal>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Snapshot
impl Send for Snapshot
impl Sync for Snapshot
impl Unpin for Snapshot
impl UnwindSafe for Snapshot
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