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_sip_grants(self, grants: SIPGrants) -> 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 with_room_config(self, config: RoomConfiguration) -> 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 duplicate 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 Freeze for AccessToken
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