Struct identity_iota::account::PublishOptions
source · [−]pub struct PublishOptions { /* private fields */ }
account
only.Expand description
Options to customize how identities are published to the Tangle.
Implementations
sourceimpl PublishOptions
impl PublishOptions
sourcepub fn new() -> PublishOptions
pub fn new() -> PublishOptions
Creates a new set of default publish options.
sourcepub fn force_integration_update(self, force: bool) -> PublishOptions
👎 Deprecated since 0.5.0: diff chain features are slated for removal
pub fn force_integration_update(self, force: bool) -> PublishOptions
diff chain features are slated for removal
Whether to force the publication to be an integration update.
If this option is not set, the account automatically determines whether an update needs to be published as an integration or a diff update. Publishing as an integration update is always valid, but not recommended for identities with many updates.
See the IOTA DID method specification for more details.
sourcepub fn sign_with(self, fragment: impl Into<String>) -> PublishOptions
pub fn sign_with(self, fragment: impl Into<String>) -> PublishOptions
Set the fragment of a verification method with which to sign the update. This must point to an Ed25519 method with a capability invocation verification relationship.
If this is not set, the method used is determined by
IotaDocument
Trait Implementations
sourceimpl Clone for PublishOptions
impl Clone for PublishOptions
sourcefn clone(&self) -> PublishOptions
fn clone(&self) -> PublishOptions
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 more
sourceimpl Debug for PublishOptions
impl Debug for PublishOptions
sourceimpl Default for PublishOptions
impl Default for PublishOptions
sourcefn default() -> PublishOptions
fn default() -> PublishOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for PublishOptions
impl Send for PublishOptions
impl Sync for PublishOptions
impl Unpin for PublishOptions
impl UnwindSafe for PublishOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more