pub struct AddOnionResponse {
pub service_id: String,
pub private_key: Option<String>,
pub private_key_type: Option<String>,
}Expand description
Response from ADD_ONION command.
Contains the service ID and optionally the private key for the hidden service.
Fields§
§service_id: StringThe onion address without the .onion suffix.
private_key: Option<String>The private key (base64 encoded), if not discarded.
private_key_type: Option<String>The type of private key (e.g., "ED25519-V3", "RSA1024").
Trait Implementations§
Source§impl Clone for AddOnionResponse
impl Clone for AddOnionResponse
Source§fn clone(&self) -> AddOnionResponse
fn clone(&self) -> AddOnionResponse
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 moreAuto Trait Implementations§
impl Freeze for AddOnionResponse
impl RefUnwindSafe for AddOnionResponse
impl Send for AddOnionResponse
impl Sync for AddOnionResponse
impl Unpin for AddOnionResponse
impl UnwindSafe for AddOnionResponse
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