pub struct UniProtClient { /* private fields */ }Expand description
Client for UniProt protein database
Implementations§
Source§impl UniProtClient
impl UniProtClient
Sourcepub async fn search_proteins(
&self,
query: &str,
limit: usize,
) -> Result<Vec<SemanticVector>>
pub async fn search_proteins( &self, query: &str, limit: usize, ) -> Result<Vec<SemanticVector>>
Search proteins
§Arguments
query- Search query (e.g., “kinase”, “p53”)limit- Maximum results (default 100)
Sourcepub async fn get_protein(
&self,
accession: &str,
) -> Result<Option<SemanticVector>>
pub async fn get_protein( &self, accession: &str, ) -> Result<Option<SemanticVector>>
Get protein by accession ID
Sourcepub async fn search_by_organism(
&self,
organism: &str,
) -> Result<Vec<SemanticVector>>
pub async fn search_by_organism( &self, organism: &str, ) -> Result<Vec<SemanticVector>>
Search proteins by organism
Sourcepub async fn search_by_function(
&self,
function: &str,
) -> Result<Vec<SemanticVector>>
pub async fn search_by_function( &self, function: &str, ) -> Result<Vec<SemanticVector>>
Search proteins by GO term/function
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UniProtClient
impl !RefUnwindSafe for UniProtClient
impl Send for UniProtClient
impl Sync for UniProtClient
impl Unpin for UniProtClient
impl !UnwindSafe for UniProtClient
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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