pub struct PrivacyHint {
pub calldata: bool,
pub contract_address: bool,
pub logs: bool,
pub function_selector: bool,
pub hash: bool,
pub tx_hash: bool,
}
Expand description
Hints on what data should be shared about the bundle and its transactions
Fields§
§calldata: bool
The calldata of the bundle’s transactions should be shared.
contract_address: bool
The address of the bundle’s transactions should be shared.
logs: bool
The logs of the bundle’s transactions should be shared.
function_selector: bool
The function selector of the bundle’s transactions should be shared.
hash: bool
The hash of the bundle’s transactions should be shared.
tx_hash: bool
The hash of the bundle should be shared.
Implementations§
Source§impl PrivacyHint
impl PrivacyHint
Sourcepub const fn with_calldata(self) -> Self
pub const fn with_calldata(self) -> Self
Sets the flag indicating inclusion of calldata and returns the modified PrivacyHint
instance.
Sourcepub const fn with_contract_address(self) -> Self
pub const fn with_contract_address(self) -> Self
Sets the flag indicating inclusion of contract address and returns the modified
PrivacyHint
instance.
Sourcepub const fn with_logs(self) -> Self
pub const fn with_logs(self) -> Self
Sets the flag indicating inclusion of logs and returns the modified PrivacyHint
instance.
Sourcepub const fn with_function_selector(self) -> Self
pub const fn with_function_selector(self) -> Self
Sets the flag indicating inclusion of function selector and returns the modified
PrivacyHint
instance.
Sourcepub const fn with_hash(self) -> Self
pub const fn with_hash(self) -> Self
Sets the flag indicating inclusion of hash and returns the modified PrivacyHint
instance.
Sourcepub const fn with_tx_hash(self) -> Self
pub const fn with_tx_hash(self) -> Self
Sets the flag indicating inclusion of transaction hash and returns the modified
PrivacyHint
instance.
Sourcepub const fn has_calldata(&self) -> bool
pub const fn has_calldata(&self) -> bool
Checks if calldata inclusion flag is set.
Sourcepub const fn has_contract_address(&self) -> bool
pub const fn has_contract_address(&self) -> bool
Checks if contract address inclusion flag is set.
Sourcepub const fn has_function_selector(&self) -> bool
pub const fn has_function_selector(&self) -> bool
Checks if function selector inclusion flag is set.
Sourcepub const fn has_tx_hash(&self) -> bool
pub const fn has_tx_hash(&self) -> bool
Checks if transaction hash inclusion flag is set.
Trait Implementations§
Source§impl Clone for PrivacyHint
impl Clone for PrivacyHint
Source§fn clone(&self) -> PrivacyHint
fn clone(&self) -> PrivacyHint
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for PrivacyHint
impl Debug for PrivacyHint
Source§impl Default for PrivacyHint
impl Default for PrivacyHint
Source§fn default() -> PrivacyHint
fn default() -> PrivacyHint
Source§impl<'de> Deserialize<'de> for PrivacyHint
impl<'de> Deserialize<'de> for PrivacyHint
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Source§impl PartialEq for PrivacyHint
impl PartialEq for PrivacyHint
Source§impl Serialize for PrivacyHint
impl Serialize for PrivacyHint
impl Eq for PrivacyHint
impl StructuralPartialEq for PrivacyHint
Auto Trait Implementations§
impl Freeze for PrivacyHint
impl RefUnwindSafe for PrivacyHint
impl Send for PrivacyHint
impl Sync for PrivacyHint
impl Unpin for PrivacyHint
impl UnwindSafe for PrivacyHint
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)