Struct holochain_zome_types::entry::GetOptions [−][src]
pub struct GetOptions {
pub strategy: GetStrategy,
}
Expand description
Options for controlling how get works
Fields
strategy: GetStrategy
If this is true the get call will wait for the latest data before returning. If it is false you will get whatever is locally available on this conductor.
Implementations
This will get you the content with latest metadata if it can otherwise it will fallback to what you have cached locally.
This call is guaranteed to not go to the network if you are an authority for this hash.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for GetOptions
impl Send for GetOptions
impl Sync for GetOptions
impl Unpin for GetOptions
impl UnwindSafe for GetOptions
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more