pub struct Sample {
pub name: String,
}
Fields§
§name: String
Implementations§
Source§impl Sample
impl Sample
pub fn create(conn: &Connection, name: &str) -> SQLResult<Sample>
pub fn get_or_create(conn: &Connection, name: &str) -> Sample
pub fn get_graph<'a>( conn: &Connection, collection: &str, name: impl Into<Option<&'a str>>, ) -> DiGraphMap<GraphNode, GraphEdge>
pub fn get_or_create_child( conn: &Connection, collection_name: &str, sample_name: &str, parent_sample: Option<&str>, ) -> Sample
pub fn get_block_groups( conn: &Connection, collection_name: &str, sample_name: Option<&str>, ) -> Vec<BlockGroup>
pub fn get_all_names(conn: &Connection) -> Vec<String>
pub fn get_by_name(conn: &Connection, name: &str) -> SQLResult<Sample>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Sample
impl RefUnwindSafe for Sample
impl Send for Sample
impl Sync for Sample
impl Unpin for Sample
impl UnwindSafe for Sample
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
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