Skip to content

Commit

Permalink
renaming the request.rs file so it is not confusing
Browse files Browse the repository at this point in the history
  • Loading branch information
anewton1998 committed Jan 4, 2025
1 parent f6d1737 commit 3b0256c
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 13 deletions.
2 changes: 1 addition & 1 deletion icann-rdap-cli/src/bin/rdap/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use icann_rdap_client::{
gtld::{GtldParams, ToGtldWhois},
md::{redacted::replace_redacted_items, MdOptions, MdParams, ToMd},
query::{qtype::QueryType, request::ResponseData},
request::{RequestData, RequestResponse, RequestResponses, SourceType},
rr::{RequestData, RequestResponse, RequestResponses, SourceType},
};
use reqwest::Client;
use termimad::{crossterm::style::Color::*, Alignment, MadSkin};
Expand Down
2 changes: 1 addition & 1 deletion icann-rdap-cli/tests/integration/cache.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#![allow(non_snake_case)]

use icann_rdap_client::request::RequestResponseOwned;
use icann_rdap_client::rr::RequestResponseOwned;
use icann_rdap_common::response::{domain::Domain, entity::Entity, RdapResponse};
use icann_rdap_srv::storage::StoreOps;

Expand Down
2 changes: 1 addition & 1 deletion icann-rdap-cli/tests/integration/source.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#![allow(non_snake_case)]

use icann_rdap_client::request::{RequestResponseOwned, SourceType};
use icann_rdap_client::rr::{RequestResponseOwned, SourceType};
use icann_rdap_common::response::network::Network;
use icann_rdap_srv::storage::StoreOps;
use rstest::rstest;
Expand Down
2 changes: 1 addition & 1 deletion icann-rdap-client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pub mod iana_request;
pub mod md;
pub mod query;
pub mod registered_redactions;
pub mod request;
pub mod rr;

#[doc(inline)]
pub use crate::client::create_client;
Expand Down
2 changes: 1 addition & 1 deletion icann-rdap-client/src/md/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! Converts RDAP to Markdown.
use crate::request::RequestData;
use crate::rr::RequestData;
use buildstructor::Builder;
use icann_rdap_common::{check::CheckParams, httpdata::HttpData, response::RdapResponse};
use std::{any::TypeId, char};
Expand Down
17 changes: 10 additions & 7 deletions icann-rdap-client/src/md/table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,10 @@ mod tests {
response::{types::Common, RdapResponse},
};

use crate::{md::ToMd, request::RequestData};
use crate::{
md::ToMd,
rr::{RequestData, SourceType},
};

use super::MultiPartTable;

Expand All @@ -262,7 +265,7 @@ mod tests {
let req_data = RequestData {
req_number: 0,
source_host: "",
source_type: crate::request::SourceType::UncategorizedRegistry,
source_type: SourceType::UncategorizedRegistry,
};
let rdap_response = RdapResponse::ErrorResponse(
icann_rdap_common::response::error::Error::builder()
Expand Down Expand Up @@ -294,7 +297,7 @@ mod tests {
let req_data = RequestData {
req_number: 0,
source_host: "",
source_type: crate::request::SourceType::UncategorizedRegistry,
source_type: SourceType::UncategorizedRegistry,
};
let rdap_response = RdapResponse::ErrorResponse(
icann_rdap_common::response::error::Error::builder()
Expand Down Expand Up @@ -327,7 +330,7 @@ mod tests {
let req_data = RequestData {
req_number: 0,
source_host: "",
source_type: crate::request::SourceType::UncategorizedRegistry,
source_type: SourceType::UncategorizedRegistry,
};
let rdap_response = RdapResponse::ErrorResponse(
icann_rdap_common::response::error::Error::builder()
Expand Down Expand Up @@ -362,7 +365,7 @@ mod tests {
let req_data = RequestData {
req_number: 0,
source_host: "",
source_type: crate::request::SourceType::UncategorizedRegistry,
source_type: SourceType::UncategorizedRegistry,
};
let rdap_response = RdapResponse::ErrorResponse(
icann_rdap_common::response::error::Error::builder()
Expand Down Expand Up @@ -395,7 +398,7 @@ mod tests {
let req_data = RequestData {
req_number: 0,
source_host: "",
source_type: crate::request::SourceType::UncategorizedRegistry,
source_type: SourceType::UncategorizedRegistry,
};
let rdap_response = RdapResponse::ErrorResponse(
icann_rdap_common::response::error::Error::builder()
Expand Down Expand Up @@ -434,7 +437,7 @@ mod tests {
let req_data = RequestData {
req_number: 0,
source_host: "",
source_type: crate::request::SourceType::UncategorizedRegistry,
source_type: SourceType::UncategorizedRegistry,
};
let rdap_response = RdapResponse::ErrorResponse(
icann_rdap_common::response::error::Error::builder()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! Structures that describe a request.
//! Structures that describe a request/response.
use icann_rdap_common::check::Checks;
use serde::{Deserialize, Serialize};
Expand Down

0 comments on commit 3b0256c

Please sign in to comment.