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 decode_bytes(bytes: &[u8]) -> Result<Self, ParseError>
fn decode_bytes(bytes: &[u8]) -> Result<Self, ParseError>
Decode a ticket from its byte representation.
§fn encode_string(&self) -> String
fn encode_string(&self) -> String
Encode the ticket into its canonical string form. Read more
§fn decode_string(s: &str) -> Result<Self, ParseError>
fn decode_string(s: &str) -> Result<Self, ParseError>
Decode a ticket from its canonical string form. Read more
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> 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>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more