pub struct Protocol {
pub security_level: u8,
pub protocol: String,
}Expand description
Defines a protocol with its security level and name.
The security level determines how strictly the wallet enforces user confirmation:
- 0: Silent (no user interaction)
- 1: Every app (user confirms per app)
- 2: Every app and counterparty (user confirms per app + counterparty)
Serializes as a JSON array [securityLevel, "protocolName"] matching
the Go SDK encoding.
Fields§
§security_level: u8§protocol: StringTrait Implementations§
Auto Trait Implementations§
impl Freeze for Protocol
impl RefUnwindSafe for Protocol
impl Send for Protocol
impl Sync for Protocol
impl Unpin for Protocol
impl UnsafeUnpin for Protocol
impl UnwindSafe for Protocol
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