pub enum GetStrategy {
Network,
Local,
}Expand description
Set if data should be fetched from the network or only from the local databases.
Variants§
Network
Fetch latest metadata from the network, and otherwise fall back to locally cached metadata.
If the current agent is an authority for this hash, this call will not go to the network.
Local
Gets the action/entry and its metadata from local databases only. No network call is made.
Trait Implementations§
Source§impl Clone for GetStrategy
impl Clone for GetStrategy
Source§fn clone(&self) -> GetStrategy
fn clone(&self) -> GetStrategy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for GetStrategy
Source§impl Debug for GetStrategy
impl Debug for GetStrategy
Source§impl Default for GetStrategy
impl Default for GetStrategy
Source§fn default() -> GetStrategy
fn default() -> GetStrategy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GetStrategy
impl<'de> Deserialize<'de> for GetStrategy
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<GetStrategy, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<GetStrategy, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for GetStrategy
impl PartialEq for GetStrategy
Source§impl Serialize for GetStrategy
impl Serialize for GetStrategy
Source§fn 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 StructuralPartialEq for GetStrategy
Auto Trait Implementations§
impl Freeze for GetStrategy
impl RefUnwindSafe for GetStrategy
impl Send for GetStrategy
impl Sync for GetStrategy
impl Unpin for GetStrategy
impl UnsafeUnpin for GetStrategy
impl UnwindSafe for GetStrategy
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