pub struct EncodedPostBundleFeedbackHeaderV1 {
pub time_millis: TimeMillis,
pub location_id: Id,
pub feedbacks_bytes_hash: Hash,
pub peer: Peer,
pub signature: Signature,
}Fields§
§time_millis: TimeMillis§location_id: Id§feedbacks_bytes_hash: Hash§peer: Peer§signature: SignatureImplementations§
Source§impl EncodedPostBundleFeedbackHeaderV1
impl EncodedPostBundleFeedbackHeaderV1
pub fn get_hash_for_signing(&self) -> Hash
pub fn signature_generate(&mut self, signature_key: &SignatureKey)
pub fn signature_verify(&self) -> Result<()>
pub fn verify(&self) -> Result<()>
Trait Implementations§
Source§impl Clone for EncodedPostBundleFeedbackHeaderV1
impl Clone for EncodedPostBundleFeedbackHeaderV1
Source§fn clone(&self) -> EncodedPostBundleFeedbackHeaderV1
fn clone(&self) -> EncodedPostBundleFeedbackHeaderV1
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for EncodedPostBundleFeedbackHeaderV1
impl<'de> Deserialize<'de> for EncodedPostBundleFeedbackHeaderV1
Source§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
Source§impl PartialEq for EncodedPostBundleFeedbackHeaderV1
impl PartialEq for EncodedPostBundleFeedbackHeaderV1
Source§fn eq(&self, other: &EncodedPostBundleFeedbackHeaderV1) -> bool
fn eq(&self, other: &EncodedPostBundleFeedbackHeaderV1) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EncodedPostBundleFeedbackHeaderV1
Auto Trait Implementations§
impl Freeze for EncodedPostBundleFeedbackHeaderV1
impl RefUnwindSafe for EncodedPostBundleFeedbackHeaderV1
impl Send for EncodedPostBundleFeedbackHeaderV1
impl Sync for EncodedPostBundleFeedbackHeaderV1
impl Unpin for EncodedPostBundleFeedbackHeaderV1
impl UnsafeUnpin for EncodedPostBundleFeedbackHeaderV1
impl UnwindSafe for EncodedPostBundleFeedbackHeaderV1
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.