Struct webkit6::Credential
source · pub struct Credential { /* private fields */ }
Expand description
Groups information used for user authentication.
GLib type: Boxed type with copy-on-clone semantics.
Implementations§
source§impl Credential
impl Credential
sourcepub fn as_ptr(&self) -> *mut WebKitCredential
pub fn as_ptr(&self) -> *mut WebKitCredential
Return the inner pointer to the underlying C value.
sourcepub unsafe fn from_glib_ptr_borrow(ptr: &*mut WebKitCredential) -> &Self
pub unsafe fn from_glib_ptr_borrow(ptr: &*mut WebKitCredential) -> &Self
Borrows the underlying C value.
sourcepub unsafe fn from_glib_ptr_borrow_mut(
ptr: &mut *mut WebKitCredential,
) -> &mut Self
pub unsafe fn from_glib_ptr_borrow_mut( ptr: &mut *mut WebKitCredential, ) -> &mut Self
Borrows the underlying C value mutably.
source§impl Credential
impl Credential
sourcepub fn new(
username: &str,
password: &str,
persistence: CredentialPersistence,
) -> Credential
pub fn new( username: &str, password: &str, persistence: CredentialPersistence, ) -> Credential
sourcepub fn for_certificate(
certificate: Option<&impl IsA<TlsCertificate>>,
persistence: CredentialPersistence,
) -> Credential
pub fn for_certificate( certificate: Option<&impl IsA<TlsCertificate>>, persistence: CredentialPersistence, ) -> Credential
Create a new credential from the @certificate and persistence mode.
Note that CredentialPersistence::Permanent
is not supported for certificate credentials.
§certificate
The #GTlsCertificate, or None
§persistence
The #WebKitCredentialPersistence of the new credential
§Returns
A #WebKitCredential.
sourcepub fn for_certificate_pin(
pin: &str,
persistence: CredentialPersistence,
) -> Credential
pub fn for_certificate_pin( pin: &str, persistence: CredentialPersistence, ) -> Credential
Create a new credential from the provided PIN and persistence mode.
Note that CredentialPersistence::Permanent
is not supported for certificate pin credentials.
§pin
The PIN for the new credential
§persistence
The #WebKitCredentialPersistence of the new credential
§Returns
A #WebKitCredential.
sourcepub fn certificate(&mut self) -> Option<TlsCertificate>
pub fn certificate(&mut self) -> Option<TlsCertificate>
sourcepub fn password(&mut self) -> Option<GString>
pub fn password(&mut self) -> Option<GString>
Get the password currently held by this #WebKitCredential.
§Returns
The password stored in the #WebKitCredential.
sourcepub fn persistence(&mut self) -> CredentialPersistence
pub fn persistence(&mut self) -> CredentialPersistence
Get the persistence mode currently held by this #WebKitCredential.
§Returns
The #WebKitCredentialPersistence stored in the #WebKitCredential.
Trait Implementations§
source§impl Clone for Credential
impl Clone for Credential
source§impl Debug for Credential
impl Debug for Credential
source§impl From<Credential> for Value
impl From<Credential> for Value
source§fn from(o: Credential) -> Self
fn from(o: Credential) -> Self
source§impl HasParamSpec for Credential
impl HasParamSpec for Credential
type ParamSpec = ParamSpecBoxed
§type SetValue = Credential
type SetValue = Credential
type BuilderFn = fn(_: &str) -> ParamSpecBoxedBuilder<'_, Credential>
fn param_spec_builder() -> Self::BuilderFn
source§impl Hash for Credential
impl Hash for Credential
source§impl Ord for Credential
impl Ord for Credential
source§fn cmp(&self, other: &Credential) -> Ordering
fn cmp(&self, other: &Credential) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for Credential
impl PartialEq for Credential
source§fn eq(&self, other: &Credential) -> bool
fn eq(&self, other: &Credential) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for Credential
impl PartialOrd for Credential
source§fn partial_cmp(&self, other: &Credential) -> Option<Ordering>
fn partial_cmp(&self, other: &Credential) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl StaticType for Credential
impl StaticType for Credential
source§fn static_type() -> Type
fn static_type() -> Type
Self
.impl Eq for Credential
impl StructuralPartialEq for Credential
Auto Trait Implementations§
impl Freeze for Credential
impl RefUnwindSafe for Credential
impl !Send for Credential
impl !Sync for Credential
impl Unpin for Credential
impl UnwindSafe for Credential
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)