pub struct HiddenServiceDescriptorV2 {
pub raw_contents: Vec<u8>,
pub unrecognized_lines: Vec<String>,
pub descriptor_id: Option<String>,
pub version: Option<u32>,
pub permanent_key: Option<String>,
pub secret_id_part: Option<String>,
pub published: Option<NaiveDateTime>,
pub protocol_versions: Vec<u32>,
pub introduction_points_encoded: Option<String>,
pub introduction_points_content: Option<Vec<u8>>,
pub signature: Option<String>,
}Fields§
§raw_contents: Vec<u8>§unrecognized_lines: Vec<String>§descriptor_id: Option<String>§version: Option<u32>§permanent_key: Option<String>§secret_id_part: Option<String>§published: Option<NaiveDateTime>§protocol_versions: Vec<u32>§introduction_points_encoded: Option<String>§introduction_points_content: Option<Vec<u8>>§signature: Option<String>Implementations§
Source§impl HiddenServiceDescriptorV2
impl HiddenServiceDescriptorV2
pub fn parse(content: &[u8], validate: bool) -> Result<Self>
pub fn parse_with_options( content: &[u8], validate: bool, skip_crypto_validation: bool, ) -> Result<Self>
pub fn parse_many(content: &[u8], validate: bool) -> Result<Vec<Self>>
pub fn introduction_points( &self, authentication_cookie: Option<&str>, ) -> Result<Vec<IntroductionPoints>>
pub fn content(attributes: &Attributes, exclude: &[&str]) -> Vec<u8> ⓘ
pub fn create( attributes: &Attributes, exclude: &[&str], validate: bool, ) -> Result<Self>
Trait Implementations§
Source§impl Clone for HiddenServiceDescriptorV2
impl Clone for HiddenServiceDescriptorV2
Source§impl Debug for HiddenServiceDescriptorV2
impl Debug for HiddenServiceDescriptorV2
impl StructuralPartialEq for HiddenServiceDescriptorV2
Auto Trait Implementations§
impl Freeze for HiddenServiceDescriptorV2
impl RefUnwindSafe for HiddenServiceDescriptorV2
impl Send for HiddenServiceDescriptorV2
impl Sync for HiddenServiceDescriptorV2
impl Unpin for HiddenServiceDescriptorV2
impl UnsafeUnpin for HiddenServiceDescriptorV2
impl UnwindSafe for HiddenServiceDescriptorV2
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