pub struct ArtifactBuilder { /* private fields */ }Expand description
Builder for creating new artifacts
Implementations§
Source§impl ArtifactBuilder
impl ArtifactBuilder
Sourcepub fn new_v2(
intent: Intent,
author_pubkey: [u8; 32],
note_hash: [u8; 32],
) -> Self
pub fn new_v2( intent: Intent, author_pubkey: [u8; 32], note_hash: [u8; 32], ) -> Self
Create v2 artifact builder
Sourcepub fn new(intent: Intent, author_pubkey: [u8; 32]) -> Self
pub fn new(intent: Intent, author_pubkey: [u8; 32]) -> Self
Create artifact builder (defaults to v1 for backward compatibility)
pub fn with_artifact_id(self, id: ArtifactId) -> Self
pub fn with_timestamp(self, timestamp: DateTime<Utc>) -> Self
pub fn with_flags(self, flags: u8) -> Self
pub fn with_note_hash(self, note_hash: [u8; 32]) -> Self
Sourcepub fn build_unsigned(&self) -> UnsignedArtifact
pub fn build_unsigned(&self) -> UnsignedArtifact
Build unsigned artifact (for signing)
Auto Trait Implementations§
impl Freeze for ArtifactBuilder
impl RefUnwindSafe for ArtifactBuilder
impl Send for ArtifactBuilder
impl Sync for ArtifactBuilder
impl Unpin for ArtifactBuilder
impl UnsafeUnpin for ArtifactBuilder
impl UnwindSafe for ArtifactBuilder
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