@@ -769,33 +769,6 @@ impl ClientMetadata {
769769///
770770/// To access other fields, use this type's `Deref` implementation.
771771///
772- /// # Example
773- ///
774- /// ```no_run
775- /// use oauth2_types::{
776- /// oidc::ApplicationType,
777- /// registration::VerifiedClientMetadata,
778- /// requests::GrantType,
779- /// };
780- /// use url::Url;
781- /// # use oauth2_types::registration::{ClientMetadata, ClientMetadataVerificationError};
782- /// # let metadata = ClientMetadata::default();
783- /// # let issuer = Url::parse("http://localhost").unwrap();
784- /// let verified_metadata = metadata.validate()?;
785- ///
786- /// // The redirect URIs are required during validation so this is not an `Option`.
787- /// let _: &[Url] = verified_metadata.redirect_uris();
788- ///
789- /// // The field has a default value so this is not an `Option`.
790- /// let _: ApplicationType = verified_metadata.application_type();
791- ///
792- /// // Other fields can be accessed via `Deref`.
793- /// if let Some(jwks_uri) = &verified_metadata.jwks_uri {
794- /// println!("Client's JWK Set is available at {jwks_uri}");
795- /// }
796- /// # Ok::<(), ClientMetadataVerificationError>(())
797- /// ```
798- ///
799772/// [OpenID Connect Dynamic Client Registration Spec 1.0]: https://openid.net/specs/openid-connect-registration-1_0.html#ClientMetadata
800773#[ derive( Serialize , Debug , PartialEq , Eq , Clone ) ]
801774#[ serde( into = "ClientMetadataSerdeHelper" ) ]
0 commit comments