Struct holochain_types::prelude::DnaPhenotypeOpt
source · [−]pub struct DnaPhenotypeOpt<P = SerializedBytes> {
pub network_seed: Option<String>,
pub properties: Option<P>,
pub origin_time: Option<Timestamp>,
}
Expand description
DnaPhenotype
options of which all are optional.
Fields
network_seed: Option<String>
see DnaPhenotype
properties: Option<P>
see DnaPhenotype
origin_time: Option<Timestamp>
see DnaPhenotype
Implementations
sourceimpl<P, E> DnaPhenotypeOpt<P>where
P: TryInto<SerializedBytes, Error = E>,
E: Into<SerializedBytesError>,
impl<P, E> DnaPhenotypeOpt<P>where
P: TryInto<SerializedBytes, Error = E>,
E: Into<SerializedBytesError>,
sourcepub fn none() -> DnaPhenotypeOpt<P>
pub fn none() -> DnaPhenotypeOpt<P>
Constructor with all fields set to None
sourcepub fn serialized(self) -> Result<DnaPhenotypeOpt<SerializedBytes>, E>
pub fn serialized(self) -> Result<DnaPhenotypeOpt<SerializedBytes>, E>
Serialize the properties field into SerializedBytes
sourcepub fn with_network_seed(self, network_seed: String) -> DnaPhenotypeOpt<P>
pub fn with_network_seed(self, network_seed: String) -> DnaPhenotypeOpt<P>
Return a modified form with the network_seed
field set
sourcepub fn with_properties(self, properties: P) -> DnaPhenotypeOpt<P>
pub fn with_properties(self, properties: P) -> DnaPhenotypeOpt<P>
Return a modified form with the properties
field set
sourcepub fn with_origin_time(self, origin_time: Timestamp) -> DnaPhenotypeOpt<P>
pub fn with_origin_time(self, origin_time: Timestamp) -> DnaPhenotypeOpt<P>
Return a modified form with the origin_time
field set
sourcepub fn has_some_option_set(&self) -> bool
pub fn has_some_option_set(&self) -> bool
Check if at least one of the options is set.
Trait Implementations
sourceimpl<'arbitrary, P> Arbitrary<'arbitrary> for DnaPhenotypeOpt<P>where
P: Arbitrary<'arbitrary>,
impl<'arbitrary, P> Arbitrary<'arbitrary> for DnaPhenotypeOpt<P>where
P: Arbitrary<'arbitrary>,
sourcefn arbitrary(
u: &mut Unstructured<'arbitrary>
) -> Result<DnaPhenotypeOpt<P>, Error>
fn arbitrary(
u: &mut Unstructured<'arbitrary>
) -> Result<DnaPhenotypeOpt<P>, Error>
Generate an arbitrary value of Self
from the given unstructured data. Read more
sourcefn arbitrary_take_rest(
u: Unstructured<'arbitrary>
) -> Result<DnaPhenotypeOpt<P>, Error>
fn arbitrary_take_rest(
u: Unstructured<'arbitrary>
) -> Result<DnaPhenotypeOpt<P>, Error>
Generate an arbitrary value of Self
from the entirety of the given
unstructured data. Read more
sourceimpl<P> Clone for DnaPhenotypeOpt<P>where
P: Clone,
impl<P> Clone for DnaPhenotypeOpt<P>where
P: Clone,
sourcefn clone(&self) -> DnaPhenotypeOpt<P>
fn clone(&self) -> DnaPhenotypeOpt<P>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<P> Debug for DnaPhenotypeOpt<P>where
P: Debug,
impl<P> Debug for DnaPhenotypeOpt<P>where
P: Debug,
sourceimpl<P, E> Default for DnaPhenotypeOpt<P>where
P: TryInto<SerializedBytes, Error = E>,
E: Into<SerializedBytesError>,
impl<P, E> Default for DnaPhenotypeOpt<P>where
P: TryInto<SerializedBytes, Error = E>,
E: Into<SerializedBytesError>,
sourcefn default() -> DnaPhenotypeOpt<P>
fn default() -> DnaPhenotypeOpt<P>
Returns the “default value” for a type. Read more
sourceimpl<'de, P> Deserialize<'de> for DnaPhenotypeOpt<P>where
P: Deserialize<'de>,
impl<'de, P> Deserialize<'de> for DnaPhenotypeOpt<P>where
P: Deserialize<'de>,
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<DnaPhenotypeOpt<P>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<DnaPhenotypeOpt<P>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<P> PartialEq<DnaPhenotypeOpt<P>> for DnaPhenotypeOpt<P>where
P: PartialEq<P>,
impl<P> PartialEq<DnaPhenotypeOpt<P>> for DnaPhenotypeOpt<P>where
P: PartialEq<P>,
sourcefn eq(&self, other: &DnaPhenotypeOpt<P>) -> bool
fn eq(&self, other: &DnaPhenotypeOpt<P>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl<P> Serialize for DnaPhenotypeOpt<P>where
P: Serialize,
impl<P> Serialize for DnaPhenotypeOpt<P>where
P: Serialize,
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<P> Eq for DnaPhenotypeOpt<P>where
P: Eq,
impl<P> StructuralEq for DnaPhenotypeOpt<P>
impl<P> StructuralPartialEq for DnaPhenotypeOpt<P>
Auto Trait Implementations
impl<P> RefUnwindSafe for DnaPhenotypeOpt<P>where
P: RefUnwindSafe,
impl<P> Send for DnaPhenotypeOpt<P>where
P: Send,
impl<P> Sync for DnaPhenotypeOpt<P>where
P: Sync,
impl<P> Unpin for DnaPhenotypeOpt<P>where
P: Unpin,
impl<P> UnwindSafe for DnaPhenotypeOpt<P>where
P: UnwindSafe,
Blanket Implementations
impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
impl<T> FutureExt for T
impl<T> FutureExt for T
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).
fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more