Struct primitives::validator::ValidatorDesc
source · pub struct ValidatorDesc {
pub id: ValidatorId,
pub fee: UnifiedNum,
pub fee_addr: Option<Address>,
pub url: String,
}
Expand description
A Validator description which includes the identity, fee (per event) and the Sentry URL.
Fields
id: ValidatorId
fee: UnifiedNum
The validator fee per event
Each fee is calculated based on the payout for an event.
payout * fee = event fee payout
fee_addr: Option<Address>
The address which will receive the fees
url: String
The url of the Validator where Sentry API is running
Implementations
sourceimpl ValidatorDesc
impl ValidatorDesc
sourcepub fn try_api_url(&self) -> Result<ApiUrl, ApiUrlError>
pub fn try_api_url(&self) -> Result<ApiUrl, ApiUrlError>
Tries to create an ApiUrl
from the url
field.
Trait Implementations
sourceimpl Clone for ValidatorDesc
impl Clone for ValidatorDesc
sourcefn clone(&self) -> ValidatorDesc
fn clone(&self) -> ValidatorDesc
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 moresourceimpl Debug for ValidatorDesc
impl Debug for ValidatorDesc
sourceimpl<'de> Deserialize<'de> for ValidatorDesc
impl<'de> Deserialize<'de> for ValidatorDesc
sourcefn 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
sourceimpl PartialEq<ValidatorDesc> for ValidatorDesc
impl PartialEq<ValidatorDesc> for ValidatorDesc
sourcefn eq(&self, other: &ValidatorDesc) -> bool
fn eq(&self, other: &ValidatorDesc) -> bool
sourceimpl Serialize for ValidatorDesc
impl Serialize for ValidatorDesc
impl Eq for ValidatorDesc
impl StructuralEq for ValidatorDesc
impl StructuralPartialEq for ValidatorDesc
Auto Trait Implementations
impl RefUnwindSafe for ValidatorDesc
impl Send for ValidatorDesc
impl Sync for ValidatorDesc
impl Unpin for ValidatorDesc
impl UnwindSafe for ValidatorDesc
Blanket Implementations
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