pub struct ApiSecret {
pub secret: SecretKey,
pub remote: EndpointAddr,
}Expand description
The secret material used to connect your services.iroh.computer project. The value of these should be treated like any other API key: guard them carefully.
Fields§
§secret: SecretKeyED25519 secret used to construct rcans from
remote: EndpointAddrThe iroh-services endpoint to direct requests to
Implementations§
Trait Implementations§
Source§impl Ticket for ApiSecret
impl Ticket for ApiSecret
Source§const KIND: &'static str = "services"
const KIND: &'static str = "services"
String prefix describing the kind of iroh ticket. Read more
Source§fn from_bytes(bytes: &[u8]) -> Result<Self, ParseError>
fn from_bytes(bytes: &[u8]) -> Result<Self, ParseError>
Deserialize from the base32 string representation bytes.
§fn deserialize(str: &str) -> Result<Self, ParseError>
fn deserialize(str: &str) -> Result<Self, ParseError>
Deserialize from a string.
Auto Trait Implementations§
impl Freeze for ApiSecret
impl RefUnwindSafe for ApiSecret
impl Send for ApiSecret
impl Sync for ApiSecret
impl Unpin for ApiSecret
impl UnwindSafe for ApiSecret
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.