pub struct LocationPayloadBuilder { /* private fields */ }
Expand description
Builder used to create a Location transaction payload
Implementations§
Source§impl LocationPayloadBuilder
impl LocationPayloadBuilder
pub fn new() -> Self
pub fn with_action(self, action: Action) -> Self
pub fn with_timestamp(self, value: u64) -> Self
pub fn build(self) -> Result<LocationPayload, BuilderError>
Trait Implementations§
Source§impl Clone for LocationPayloadBuilder
impl Clone for LocationPayloadBuilder
Source§fn clone(&self) -> LocationPayloadBuilder
fn clone(&self) -> LocationPayloadBuilder
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 Default for LocationPayloadBuilder
impl Default for LocationPayloadBuilder
Source§fn default() -> LocationPayloadBuilder
fn default() -> LocationPayloadBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LocationPayloadBuilder
impl RefUnwindSafe for LocationPayloadBuilder
impl Send for LocationPayloadBuilder
impl Sync for LocationPayloadBuilder
impl Unpin for LocationPayloadBuilder
impl UnwindSafe for LocationPayloadBuilder
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