pub struct StructurePredictionInput {
pub sequences: Vec<ChainInput>,
}Expand description
The top-level input for an ESMFold2 structure prediction request.
Chains are added one at a time via the builder methods.
Fields§
§sequences: Vec<ChainInput>Ordered list of chains included in the prediction.
Implementations§
Source§impl StructurePredictionInput
impl StructurePredictionInput
Sourcepub fn add_chain(self, chain: impl Into<ChainInput>) -> Self
pub fn add_chain(self, chain: impl Into<ChainInput>) -> Self
Append any ChainInput variant (builder-style, consumes and returns self).
Sourcepub fn add_protein(self, protein: ProteinInput) -> Self
pub fn add_protein(self, protein: ProteinInput) -> Self
Append a protein chain.
Sourcepub fn add_ligand(self, ligand: LigandInput) -> Self
pub fn add_ligand(self, ligand: LigandInput) -> Self
Append a ligand.
Sourcepub fn num_chains(&self) -> usize
pub fn num_chains(&self) -> usize
Total number of chains (protein + DNA + ligand).
Trait Implementations§
Source§impl Clone for StructurePredictionInput
impl Clone for StructurePredictionInput
Source§fn clone(&self) -> StructurePredictionInput
fn clone(&self) -> StructurePredictionInput
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StructurePredictionInput
impl Debug for StructurePredictionInput
Source§impl Default for StructurePredictionInput
impl Default for StructurePredictionInput
Source§fn default() -> StructurePredictionInput
fn default() -> StructurePredictionInput
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StructurePredictionInput
impl RefUnwindSafe for StructurePredictionInput
impl Send for StructurePredictionInput
impl Sync for StructurePredictionInput
impl Unpin for StructurePredictionInput
impl UnsafeUnpin for StructurePredictionInput
impl UnwindSafe for StructurePredictionInput
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of [
ToCompactString::to_compact_string()] Read more§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a [
CompactString]. Read more