Struct ockam_api::identity::EnrollmentTicket
source · pub struct EnrollmentTicket {
pub one_time_code: OneTimeCode,
pub project: Option<ProjectLookup>,
pub trust_context: Option<TrustContextConfig>,
}Fields§
§one_time_code: OneTimeCode§project: Option<ProjectLookup>§trust_context: Option<TrustContextConfig>Implementations§
source§impl EnrollmentTicket
impl EnrollmentTicket
pub fn new( one_time_code: OneTimeCode, project: Option<ProjectLookup>, trust_context: Option<TrustContextConfig> ) -> Self
pub fn hex_encoded(&self) -> Result<String>
Trait Implementations§
source§impl Clone for EnrollmentTicket
impl Clone for EnrollmentTicket
source§fn clone(&self) -> EnrollmentTicket
fn clone(&self) -> EnrollmentTicket
Returns a copy 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 moresource§impl Debug for EnrollmentTicket
impl Debug for EnrollmentTicket
source§impl<'de> Deserialize<'de> for EnrollmentTicket
impl<'de> Deserialize<'de> for EnrollmentTicket
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for EnrollmentTicket
impl Send for EnrollmentTicket
impl Sync for EnrollmentTicket
impl Unpin for EnrollmentTicket
impl !UnwindSafe for EnrollmentTicket
Blanket Implementations§
source§impl<D> AsyncTryClone for Dwhere
D: Clone + Sync,
impl<D> AsyncTryClone for Dwhere D: Clone + Sync,
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