pub struct SpecializedJsonCredential<Subject = NonEmptyObject, RequiredContext = (), RequiredType = (), Issuer = IdOr<IdentifiedObject>, Status = MaybeIdentifiedTypedObject, Evidence = MaybeIdentifiedTypedObject, Schema = IdentifiedTypedObject, RefreshService = TypedObject, TermsOfUse = MaybeIdentifiedTypedObject, ExtraProperties = BTreeMap<String, Value>> {Show 15 fields
pub context: Context<RequiredContext>,
pub id: Option<UriBuf>,
pub name: Option<InternationalString>,
pub description: Option<InternationalString>,
pub types: JsonCredentialTypes<RequiredType>,
pub credential_subjects: NonEmptyVec<Subject>,
pub issuer: Issuer,
pub valid_from: Option<Lexical<DateTimeStamp>>,
pub valid_until: Option<Lexical<DateTimeStamp>>,
pub credential_status: Vec<Status>,
pub terms_of_use: Vec<TermsOfUse>,
pub evidence: Vec<Evidence>,
pub credential_schema: Vec<Schema>,
pub refresh_services: Vec<RefreshService>,
pub extra_properties: ExtraProperties,
}Expand description
Specialized JSON Credential with custom types for each component.
If you don’t care about the type of each component, you can use the
JsonCredential type alias instead.
Fields§
§context: Context<RequiredContext>JSON-LD context.
id: Option<UriBuf>Credential identifier.
name: Option<InternationalString>Name.
description: Option<InternationalString>Credential description.
types: JsonCredentialTypes<RequiredType>Credential type.
credential_subjects: NonEmptyVec<Subject>Credential subjects.
issuer: IssuerIssuer.
valid_from: Option<Lexical<DateTimeStamp>>Issuance date.
valid_until: Option<Lexical<DateTimeStamp>>Expiration date.
credential_status: Vec<Status>Credential status.
terms_of_use: Vec<TermsOfUse>Terms of use.
evidence: Vec<Evidence>Evidence.
credential_schema: Vec<Schema>§refresh_services: Vec<RefreshService>§extra_properties: ExtraPropertiesImplementations§
Source§impl<Subject, RequiredContext, RequiredType, Issuer, Status, Evidence, Schema, RefreshService, TermsOfUse, ExtraProperties> SpecializedJsonCredential<Subject, RequiredContext, RequiredType, Issuer, Status, Evidence, Schema, RefreshService, TermsOfUse, ExtraProperties>where
RequiredContext: RequiredContextList,
RequiredType: RequiredTypeSet,
ExtraProperties: Default,
impl<Subject, RequiredContext, RequiredType, Issuer, Status, Evidence, Schema, RefreshService, TermsOfUse, ExtraProperties> SpecializedJsonCredential<Subject, RequiredContext, RequiredType, Issuer, Status, Evidence, Schema, RefreshService, TermsOfUse, ExtraProperties>where
RequiredContext: RequiredContextList,
RequiredType: RequiredTypeSet,
ExtraProperties: Default,
Sourcepub fn new(
id: Option<UriBuf>,
issuer: Issuer,
credential_subjects: NonEmptyVec<Subject>,
) -> Self
pub fn new( id: Option<UriBuf>, issuer: Issuer, credential_subjects: NonEmptyVec<Subject>, ) -> Self
Creates a new credential.
Trait Implementations§
Source§impl<Subject: Clone, RequiredContext: Clone, RequiredType: Clone, Issuer: Clone, Status: Clone, Evidence: Clone, Schema: Clone, RefreshService: Clone, TermsOfUse: Clone, ExtraProperties: Clone> Clone for SpecializedJsonCredential<Subject, RequiredContext, RequiredType, Issuer, Status, Evidence, Schema, RefreshService, TermsOfUse, ExtraProperties>
impl<Subject: Clone, RequiredContext: Clone, RequiredType: Clone, Issuer: Clone, Status: Clone, Evidence: Clone, Schema: Clone, RefreshService: Clone, TermsOfUse: Clone, ExtraProperties: Clone> Clone for SpecializedJsonCredential<Subject, RequiredContext, RequiredType, Issuer, Status, Evidence, Schema, RefreshService, TermsOfUse, ExtraProperties>
Source§fn clone(
&self,
) -> SpecializedJsonCredential<Subject, RequiredContext, RequiredType, Issuer, Status, Evidence, Schema, RefreshService, TermsOfUse, ExtraProperties>
fn clone( &self, ) -> SpecializedJsonCredential<Subject, RequiredContext, RequiredType, Issuer, Status, Evidence, Schema, RefreshService, TermsOfUse, ExtraProperties>
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 moreSource§impl<Subject, RequiredContext, RequiredType, Issuer: Identified, Status: MaybeIdentified + Typed, Evidence: MaybeIdentified + Typed, Schema: Identified + Typed, RefreshService: Typed, TermsOfUse: MaybeIdentified + Typed, ExtraProperties> Credential for SpecializedJsonCredential<Subject, RequiredContext, RequiredType, Issuer, Status, Evidence, Schema, RefreshService, TermsOfUse, ExtraProperties>
impl<Subject, RequiredContext, RequiredType, Issuer: Identified, Status: MaybeIdentified + Typed, Evidence: MaybeIdentified + Typed, Schema: Identified + Typed, RefreshService: Typed, TermsOfUse: MaybeIdentified + Typed, ExtraProperties> Credential for SpecializedJsonCredential<Subject, RequiredContext, RequiredType, Issuer, Status, Evidence, Schema, RefreshService, TermsOfUse, ExtraProperties>
type Status = Status
Source§type RefreshService = RefreshService
type RefreshService = RefreshService
Refresh service. Read more
Source§type TermsOfUse = TermsOfUse
type TermsOfUse = TermsOfUse
Terms of Use type. Read more
type Schema = Schema
type RelatedResource = RelatedResource
Source§fn additional_types(&self) -> &[String]
fn additional_types(&self) -> &[String]
Types that are not
VerifiableCredential. Read moreSource§fn description(&self) -> Option<impl AnyInternationalString>
fn description(&self) -> Option<impl AnyInternationalString>
Details about the credential. Read more
Source§fn credential_subjects(&self) -> &[Self::Subject]
fn credential_subjects(&self) -> &[Self::Subject]
Credential subject. Read more
Source§fn valid_from(&self) -> Option<DateTimeStamp>
fn valid_from(&self) -> Option<DateTimeStamp>
Date and time the credential becomes valid. Read more
Source§fn valid_until(&self) -> Option<DateTimeStamp>
fn valid_until(&self) -> Option<DateTimeStamp>
Date and time the credential ceases to be valid. Read more
Source§fn credential_status(&self) -> &[Self::Status]
fn credential_status(&self) -> &[Self::Status]
Credential status. Read more
fn refresh_services(&self) -> &[Self::RefreshService]
fn terms_of_use(&self) -> &[Self::TermsOfUse]
fn evidence(&self) -> &[Self::Evidence]
Source§fn credential_schemas(&self) -> &[Self::Schema]
fn credential_schemas(&self) -> &[Self::Schema]
Data schemas. Read more
fn types(&self) -> CredentialTypes<'_> ⓘ
Integrity metadata about each resource referenced by the verifiable
credential.
Source§fn validate_credential<E>(&self, env: &E) -> ClaimsValiditywhere
E: DateTimeProvider,
fn validate_credential<E>(&self, env: &E) -> ClaimsValiditywhere
E: DateTimeProvider,
Validates the credential. Read more
Source§impl<Subject: Debug, RequiredContext: Debug, RequiredType: Debug, Issuer: Debug, Status: Debug, Evidence: Debug, Schema: Debug, RefreshService: Debug, TermsOfUse: Debug, ExtraProperties: Debug> Debug for SpecializedJsonCredential<Subject, RequiredContext, RequiredType, Issuer, Status, Evidence, Schema, RefreshService, TermsOfUse, ExtraProperties>
impl<Subject: Debug, RequiredContext: Debug, RequiredType: Debug, Issuer: Debug, Status: Debug, Evidence: Debug, Schema: Debug, RefreshService: Debug, TermsOfUse: Debug, ExtraProperties: Debug> Debug for SpecializedJsonCredential<Subject, RequiredContext, RequiredType, Issuer, Status, Evidence, Schema, RefreshService, TermsOfUse, ExtraProperties>
Source§impl<'de, Subject, RequiredContext, RequiredType, Issuer, Status, Evidence, Schema, RefreshService, TermsOfUse, ExtraProperties> Deserialize<'de> for SpecializedJsonCredential<Subject, RequiredContext, RequiredType, Issuer, Status, Evidence, Schema, RefreshService, TermsOfUse, ExtraProperties>where
Subject: Deserialize<'de>,
RequiredContext: RequiredContextList,
RequiredType: RequiredTypeSet,
Issuer: Deserialize<'de>,
Status: Deserialize<'de>,
Evidence: Deserialize<'de>,
Schema: Deserialize<'de>,
RefreshService: Deserialize<'de>,
TermsOfUse: Deserialize<'de>,
ExtraProperties: Deserialize<'de>,
impl<'de, Subject, RequiredContext, RequiredType, Issuer, Status, Evidence, Schema, RefreshService, TermsOfUse, ExtraProperties> Deserialize<'de> for SpecializedJsonCredential<Subject, RequiredContext, RequiredType, Issuer, Status, Evidence, Schema, RefreshService, TermsOfUse, ExtraProperties>where
Subject: Deserialize<'de>,
RequiredContext: RequiredContextList,
RequiredType: RequiredTypeSet,
Issuer: Deserialize<'de>,
Status: Deserialize<'de>,
Evidence: Deserialize<'de>,
Schema: Deserialize<'de>,
RefreshService: Deserialize<'de>,
TermsOfUse: Deserialize<'de>,
ExtraProperties: Deserialize<'de>,
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
Source§impl<Subject, RequiredContext, RequiredType, Issuer, Status, Evidence, Schema, RefreshService, TermsOfUse, ExtraProperties> Expandable for SpecializedJsonCredential<Subject, RequiredContext, RequiredType, Issuer, Status, Evidence, Schema, RefreshService, TermsOfUse, ExtraProperties>
impl<Subject, RequiredContext, RequiredType, Issuer, Status, Evidence, Schema, RefreshService, TermsOfUse, ExtraProperties> Expandable for SpecializedJsonCredential<Subject, RequiredContext, RequiredType, Issuer, Status, Evidence, Schema, RefreshService, TermsOfUse, ExtraProperties>
type Error = JsonLdError
type Expanded<I, V> = ExpandedDocument<<V as IriVocabulary>::Iri, <V as BlankIdVocabulary>::BlankId> where I: Interpretation, V: VocabularyMut, V::Iri: LinkedDataResource<I, V> + LinkedDataSubject<I, V>, V::BlankId: LinkedDataResource<I, V> + LinkedDataSubject<I, V>
async fn expand_with<I, V>(
&self,
ld: &mut LdEnvironment<V, I>,
loader: &impl Loader,
) -> Result<Self::Expanded<I, V>, Self::Error>where
I: Interpretation,
V: VocabularyMut,
V::Iri: Clone + Eq + Hash + LinkedDataResource<I, V> + LinkedDataSubject<I, V>,
V::BlankId: Clone + Eq + Hash + LinkedDataResource<I, V> + LinkedDataSubject<I, V>,
async fn expand( &self, loader: &impl Loader, ) -> Result<Self::Expanded<WithGenerator<Blank>, ()>, Self::Error>
Source§impl<Subject, RequiredContext, RequiredType, Issuer, Status, Evidence, Schema, RefreshService, TermsOfUse, ExtraProperties> JsonLdNodeObject for SpecializedJsonCredential<Subject, RequiredContext, RequiredType, Issuer, Status, Evidence, Schema, RefreshService, TermsOfUse, ExtraProperties>
impl<Subject, RequiredContext, RequiredType, Issuer, Status, Evidence, Schema, RefreshService, TermsOfUse, ExtraProperties> JsonLdNodeObject for SpecializedJsonCredential<Subject, RequiredContext, RequiredType, Issuer, Status, Evidence, Schema, RefreshService, TermsOfUse, ExtraProperties>
fn json_ld_type(&self) -> JsonLdTypes<'_>
Source§impl<Subject, RequiredContext, RequiredType, Issuer, Status, Evidence, Schema, RefreshService, TermsOfUse, ExtraProperties> JsonLdObject for SpecializedJsonCredential<Subject, RequiredContext, RequiredType, Issuer, Status, Evidence, Schema, RefreshService, TermsOfUse, ExtraProperties>
impl<Subject, RequiredContext, RequiredType, Issuer, Status, Evidence, Schema, RefreshService, TermsOfUse, ExtraProperties> JsonLdObject for SpecializedJsonCredential<Subject, RequiredContext, RequiredType, Issuer, Status, Evidence, Schema, RefreshService, TermsOfUse, ExtraProperties>
Source§impl<Subject, RequiredContext, RequiredType, Issuer, Status, Evidence, Schema, RefreshService, TermsOfUse, ExtraProperties> MaybeIdentified for SpecializedJsonCredential<Subject, RequiredContext, RequiredType, Issuer, Status, Evidence, Schema, RefreshService, TermsOfUse, ExtraProperties>
impl<Subject, RequiredContext, RequiredType, Issuer, Status, Evidence, Schema, RefreshService, TermsOfUse, ExtraProperties> MaybeIdentified for SpecializedJsonCredential<Subject, RequiredContext, RequiredType, Issuer, Status, Evidence, Schema, RefreshService, TermsOfUse, ExtraProperties>
Source§impl<Subject, RequiredContext, RequiredType, Issuer, Status, Evidence, Schema, RefreshService, TermsOfUse, ExtraProperties> Serialize for SpecializedJsonCredential<Subject, RequiredContext, RequiredType, Issuer, Status, Evidence, Schema, RefreshService, TermsOfUse, ExtraProperties>
impl<Subject, RequiredContext, RequiredType, Issuer, Status, Evidence, Schema, RefreshService, TermsOfUse, ExtraProperties> Serialize for SpecializedJsonCredential<Subject, RequiredContext, RequiredType, Issuer, Status, Evidence, Schema, RefreshService, TermsOfUse, ExtraProperties>
Source§impl<Subject, RequiredContext, RequiredType, Issuer: Identified, Status: MaybeIdentified + Typed, Evidence: MaybeIdentified + Typed, Schema: Identified + Typed, RefreshService: Typed, TermsOfUse: MaybeIdentified + Typed, ExtraProperties, E, P> ValidateClaims<E, P> for SpecializedJsonCredential<Subject, RequiredContext, RequiredType, Issuer, Status, Evidence, Schema, RefreshService, TermsOfUse, ExtraProperties>where
E: DateTimeProvider,
impl<Subject, RequiredContext, RequiredType, Issuer: Identified, Status: MaybeIdentified + Typed, Evidence: MaybeIdentified + Typed, Schema: Identified + Typed, RefreshService: Typed, TermsOfUse: MaybeIdentified + Typed, ExtraProperties, E, P> ValidateClaims<E, P> for SpecializedJsonCredential<Subject, RequiredContext, RequiredType, Issuer, Status, Evidence, Schema, RefreshService, TermsOfUse, ExtraProperties>where
E: DateTimeProvider,
fn validate_claims(&self, env: &E, _proof: &P) -> ClaimsValidity
Auto Trait Implementations§
impl<Subject, RequiredContext, RequiredType, Issuer, Status, Evidence, Schema, RefreshService, TermsOfUse, ExtraProperties> Freeze for SpecializedJsonCredential<Subject, RequiredContext, RequiredType, Issuer, Status, Evidence, Schema, RefreshService, TermsOfUse, ExtraProperties>
impl<Subject, RequiredContext, RequiredType, Issuer, Status, Evidence, Schema, RefreshService, TermsOfUse, ExtraProperties> RefUnwindSafe for SpecializedJsonCredential<Subject, RequiredContext, RequiredType, Issuer, Status, Evidence, Schema, RefreshService, TermsOfUse, ExtraProperties>where
Issuer: RefUnwindSafe,
ExtraProperties: RefUnwindSafe,
RequiredContext: RefUnwindSafe,
RequiredType: RefUnwindSafe,
Status: RefUnwindSafe,
TermsOfUse: RefUnwindSafe,
Evidence: RefUnwindSafe,
Schema: RefUnwindSafe,
RefreshService: RefUnwindSafe,
Subject: RefUnwindSafe,
impl<Subject, RequiredContext, RequiredType, Issuer, Status, Evidence, Schema, RefreshService, TermsOfUse, ExtraProperties> Send for SpecializedJsonCredential<Subject, RequiredContext, RequiredType, Issuer, Status, Evidence, Schema, RefreshService, TermsOfUse, ExtraProperties>
impl<Subject, RequiredContext, RequiredType, Issuer, Status, Evidence, Schema, RefreshService, TermsOfUse, ExtraProperties> Sync for SpecializedJsonCredential<Subject, RequiredContext, RequiredType, Issuer, Status, Evidence, Schema, RefreshService, TermsOfUse, ExtraProperties>
impl<Subject, RequiredContext, RequiredType, Issuer, Status, Evidence, Schema, RefreshService, TermsOfUse, ExtraProperties> Unpin for SpecializedJsonCredential<Subject, RequiredContext, RequiredType, Issuer, Status, Evidence, Schema, RefreshService, TermsOfUse, ExtraProperties>
impl<Subject, RequiredContext, RequiredType, Issuer, Status, Evidence, Schema, RefreshService, TermsOfUse, ExtraProperties> UnwindSafe for SpecializedJsonCredential<Subject, RequiredContext, RequiredType, Issuer, Status, Evidence, Schema, RefreshService, TermsOfUse, ExtraProperties>where
Issuer: UnwindSafe,
ExtraProperties: UnwindSafe,
RequiredContext: UnwindSafe,
RequiredType: UnwindSafe,
Status: UnwindSafe,
TermsOfUse: UnwindSafe,
Evidence: UnwindSafe,
Schema: UnwindSafe,
RefreshService: UnwindSafe,
Subject: UnwindSafe,
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> BorrowUnordered for T
impl<T> BorrowUnordered for T
fn as_unordered(&self) -> &Unordered<T>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'de, T, C> DeserializeTyped<'de, C> for Twhere
T: Deserialize<'de>,
impl<'de, T, C> DeserializeTyped<'de, C> for Twhere
T: Deserialize<'de>,
fn deserialize_typed<S>(
_: &C,
deserializer: S,
) -> Result<T, <S as Deserializer<'de>>::Error>where
S: Deserializer<'de>,
Source§impl<T> FmtForward for T
impl<T> FmtForward for T
Source§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes
self to use its Binary implementation when Debug-formatted.Source§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes
self to use its Display implementation when
Debug-formatted.Source§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
Causes
self to use its LowerExp implementation when
Debug-formatted.Source§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
Causes
self to use its LowerHex implementation when
Debug-formatted.Source§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
Causes
self to use its Octal implementation when Debug-formatted.Source§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
Causes
self to use its Pointer implementation when
Debug-formatted.Source§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
Causes
self to use its UpperExp implementation when
Debug-formatted.Source§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
Causes
self to use its UpperHex implementation when
Debug-formatted.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
Source§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
Source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Pipes by value. This is generally the method you want to use. Read more
Source§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
Borrows
self and passes that borrow into the pipe function. Read moreSource§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
Mutably borrows
self and passes that borrow into the pipe function. Read moreSource§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
Source§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
Source§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
Borrows
self, then passes self.as_ref() into the pipe function.Source§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
Mutably borrows
self, then passes self.as_mut() into the pipe
function.Source§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
Borrows
self, then passes self.deref() into the pipe function.Source§impl<T> PipeAsRef for T
impl<T> PipeAsRef for T
Source§impl<T> PipeBorrow for T
impl<T> PipeBorrow for T
Source§impl<T> PipeDeref for T
impl<T> PipeDeref for T
Source§impl<T> PipeRef for T
impl<T> PipeRef for T
Source§impl<T> ResourceProvider<()> for T
impl<T> ResourceProvider<()> for T
Source§fn get_resource(&self) -> &()
fn get_resource(&self) -> &()
Returns a reference to the resource of type
T.Source§impl<T> Tap for T
impl<T> Tap for T
Source§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Immutable access to the
Borrow<B> of a value. Read moreSource§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
Mutable access to the
BorrowMut<B> of a value. Read moreSource§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
Immutable access to the
AsRef<R> view of a value. Read moreSource§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
Mutable access to the
AsMut<R> view of a value. Read moreSource§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Immutable access to the
Deref::Target of a value. Read moreSource§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Mutable access to the
Deref::Target of a value. Read moreSource§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
Calls
.tap() only in debug builds, and is erased in release builds.Source§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
Calls
.tap_mut() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
Calls
.tap_borrow() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
Calls
.tap_borrow_mut() only in debug builds, and is erased in release
builds.Source§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
Calls
.tap_ref() only in debug builds, and is erased in release
builds.Source§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
Calls
.tap_ref_mut() only in debug builds, and is erased in release
builds.Source§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
Calls
.tap_deref() only in debug builds, and is erased in release
builds.Source§impl<T> Tap for T
impl<T> Tap for T
Source§fn tap<F, R>(self, func: F) -> Selfwhere
F: FnOnce(&Self) -> R,
fn tap<F, R>(self, func: F) -> Selfwhere
F: FnOnce(&Self) -> R,
Provides immutable access for inspection. Read more
Source§fn tap_dbg<F, R>(self, func: F) -> Selfwhere
F: FnOnce(&Self) -> R,
fn tap_dbg<F, R>(self, func: F) -> Selfwhere
F: FnOnce(&Self) -> R,
Calls
tap in debug builds, and does nothing in release builds.Source§fn tap_mut<F, R>(self, func: F) -> Selfwhere
F: FnOnce(&mut Self) -> R,
fn tap_mut<F, R>(self, func: F) -> Selfwhere
F: FnOnce(&mut Self) -> R,
Provides mutable access for modification. Read more
Source§fn tap_mut_dbg<F, R>(self, func: F) -> Selfwhere
F: FnOnce(&mut Self) -> R,
fn tap_mut_dbg<F, R>(self, func: F) -> Selfwhere
F: FnOnce(&mut Self) -> R,
Calls
tap_mut in debug builds, and does nothing in release builds.Source§impl<T, U> TapAsRef<U> for Twhere
U: ?Sized,
impl<T, U> TapAsRef<U> for Twhere
U: ?Sized,
Source§fn tap_ref<F, R>(self, func: F) -> Self
fn tap_ref<F, R>(self, func: F) -> Self
Provides immutable access to the reference for inspection.
Source§fn tap_ref_dbg<F, R>(self, func: F) -> Self
fn tap_ref_dbg<F, R>(self, func: F) -> Self
Calls
tap_ref in debug builds, and does nothing in release builds.Source§fn tap_ref_mut<F, R>(self, func: F) -> Self
fn tap_ref_mut<F, R>(self, func: F) -> Self
Provides mutable access to the reference for modification.
Source§impl<T, U> TapBorrow<U> for Twhere
U: ?Sized,
impl<T, U> TapBorrow<U> for Twhere
U: ?Sized,
Source§fn tap_borrow<F, R>(self, func: F) -> Self
fn tap_borrow<F, R>(self, func: F) -> Self
Provides immutable access to the borrow for inspection. Read more
Source§fn tap_borrow_dbg<F, R>(self, func: F) -> Self
fn tap_borrow_dbg<F, R>(self, func: F) -> Self
Calls
tap_borrow in debug builds, and does nothing in release builds.Source§fn tap_borrow_mut<F, R>(self, func: F) -> Self
fn tap_borrow_mut<F, R>(self, func: F) -> Self
Provides mutable access to the borrow for modification.
Source§impl<T> TapDeref for T
impl<T> TapDeref for T
Source§fn tap_deref_dbg<F, R>(self, func: F) -> Self
fn tap_deref_dbg<F, R>(self, func: F) -> Self
Calls
tap_deref in debug builds, and does nothing in release builds.Source§fn tap_deref_mut<F, R>(self, func: F) -> Self
fn tap_deref_mut<F, R>(self, func: F) -> Self
Mutably dereferences
self for modification.