Struct livekit_api::access_token::AccessToken
source · pub struct AccessToken { /* private fields */ }
Implementations§
source§impl AccessToken
impl AccessToken
pub fn with_api_key(api_key: &str, api_secret: &str) -> Self
pub fn new() -> Result<Self, AccessTokenError>
pub fn with_ttl(self, ttl: Duration) -> Self
pub fn with_grants(self, grants: VideoGrants) -> Self
pub fn with_identity(self, identity: &str) -> Self
pub fn with_name(self, name: &str) -> Self
pub fn with_metadata(self, metadata: &str) -> Self
pub fn with_sha256(self, sha256: &str) -> Self
pub fn to_jwt(self) -> Result<String, AccessTokenError>
Trait Implementations§
source§impl Clone for AccessToken
impl Clone for AccessToken
source§fn clone(&self) -> AccessToken
fn clone(&self) -> AccessToken
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 moreAuto Trait Implementations§
impl RefUnwindSafe for AccessToken
impl Send for AccessToken
impl Sync for AccessToken
impl Unpin for AccessToken
impl UnwindSafe for AccessToken
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